diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-28 19:46:00 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-28 19:46:00 +0400 |
commit | e6ba8355139d41af875894f1adb2156352d617f3 (patch) | |
tree | 2277b9aa346c7a610fa296a9d9a2e040d58a28a9 /winsup/cygwin/sigproc.cc | |
parent | 5c770c843135040655925283c55c9163cd2c1052 (diff) |
* 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".
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index b616ac1c3..680b12dc0 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -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; |