* 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:
Christopher Faylor
2003-09-28 15:46:00 +00:00
parent 5c770c8431
commit e6ba835513
5 changed files with 16 additions and 4 deletions

View File

@@ -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;