X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 12 Mar 2008 17:23:02 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Bug: C-prog from Win dies in fork; gdb.exe also won't run
Message-ID: <20080312162302.GT18407@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <47D4B7D2.1F78DADB@dessent.net> <47D4E892.1090305@tlinx.org> <47D50BB6.EFB28302@dessent.net> <47D6056B.6000805@tlinx.org> <47D610C2.EECE7EE9@dessent.net> <00b601c8843a$d94fe2c0$2708a8c0@CAM.ARTIMI.COM> <47D7EFEC.122C76AE@dessent.net> <00d001c88456$9f75a3c0$2708a8c0@CAM.ARTIMI.COM> <47D7FDDB.73ABB705@dessent.net> <00dd01c8845c$078e8ee0$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <00dd01c8845c$078e8ee0$2708a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mar 12 16:13, Dave Korn wrote:
> Brian Dessent wrote on 12 March 2008 15:59:
> > Dave Korn wrote:
> > >   Now, who supposes you could work around the restriction by writing
> > > 
> > >   * (WORD *) 0x004000dc = POSIX_CUI;
> > > 
> > > just before calling NtSetInformation?
> > 
> > How are you going to fool the executive by poking around in the PE
> > header from userspace long after the process has initialized?  The
> > executive fundamentally knows which subsystem any given process is
> > running in because it created it and manages the low level process
> > table.  
> 
>   This is not just any code - this is MS code.
> 
>   Given that, it's therefore going to have been done as quickly and cheaply
> as possible, so why should we assume they wouldn't they just check the value
> in the PE header at the start of NtSetInformationProcess?

Is that just an assumption or do you know that this would work?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

