This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug: C-prog from Win dies in fork; gdb.exe also won't run


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.  That's not to say that you couldn't install a kernel driver that
somehow munges bits of the executive's internal datastructures to allow
this, but sweet mother of sh*t do I not want to have the job of the
person responsible for maintaining *that*.

Brian

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]