* 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user