* sigproc.cc (proc_subproc): Restrict permissions on ppid_handle.
* devices.shilka (device::parse): Restore check for tty in unit handling, but without the previous typo. * devices.cc: Regenerate. * devices.h (DEV_CYGDRIVE_MAJOR): Change major number to one used by linux for "user-mode virtual block device".
This commit is contained in:
parent
5c770c8431
commit
e6ba835513
@ -1,3 +1,15 @@
|
||||
2003-09-28 Pierre Humblet <pierre.humblet@ieee.org>
|
||||
|
||||
* sigproc.cc (proc_subproc): Restrict permissions on ppid_handle.
|
||||
|
||||
2003-09-28 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* devices.shilka (device::parse): Restore check for tty in unit
|
||||
handling, but without the previous typo.
|
||||
* devices.cc: Regenerate.
|
||||
* devices.h (DEV_CYGDRIVE_MAJOR): Change major number to one used by
|
||||
linux for "user-mode virtual block device".
|
||||
|
||||
2003-09-28 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* devices.h: Move a few device major numbers. Fix typo of FH_UDP.
|
||||
|
@ -1195,7 +1195,7 @@ device::parse (const char *s)
|
||||
if (++len < prior_len)
|
||||
{
|
||||
dev = KR_find_keyword (s, len);
|
||||
if (!dev || (!dev->upper && !dev->devn == FH_TTY))
|
||||
if (!dev || (!dev->upper && dev->devn != FH_TTY))
|
||||
dev = NULL;
|
||||
else
|
||||
{
|
||||
|
@ -100,7 +100,7 @@ enum fh_devices
|
||||
FH_URANDOM = FHDEV (1, 9),
|
||||
FH_OSS_DSP = FHDEV (14, 3),
|
||||
|
||||
DEV_CYGDRIVE_MAJOR = 29,
|
||||
DEV_CYGDRIVE_MAJOR = 98,
|
||||
FH_CYGDRIVE= FHDEV (DEV_CYGDRIVE_MAJOR, 0),
|
||||
FH_CYGDRIVE_A= FHDEV (DEV_CYGDRIVE_MAJOR, 'a'),
|
||||
FH_CYGDRIVE_Z= FHDEV (DEV_CYGDRIVE_MAJOR, 'z'),
|
||||
|
@ -326,7 +326,7 @@ device::parse (const char *s)
|
||||
if (++len < prior_len)
|
||||
{
|
||||
dev = KR_find_keyword (s, len);
|
||||
if (!dev || !dev->upper)
|
||||
if (!dev || (!dev->upper && dev->devn != FH_TTY))
|
||||
dev = NULL;
|
||||
else
|
||||
{
|
||||
|
@ -326,7 +326,7 @@ proc_subproc (DWORD what, DWORD val)
|
||||
ProtectHandle1 (vchild->pid_handle, pid_handle);
|
||||
|
||||
if (!DuplicateHandle (hMainProc, hMainProc, vchild->hProcess, &vchild->ppid_handle,
|
||||
0, TRUE, DUPLICATE_SAME_ACCESS))
|
||||
SYNCHRONIZE | PROCESS_DUP_HANDLE, TRUE, 0))
|
||||
system_printf ("Couldn't duplicate my handle<%p> for pid %d, %E", hMainProc, vchild->pid);
|
||||
vchild->ppid = myself->pid;
|
||||
vchild->uid = myself->uid;
|
||||
|
Loading…
Reference in New Issue
Block a user