2003-09-26 Pierre Humblet <pierre.humblet@ieee.org>
* pinfo.h (pinfo::set_acl): Declare. * pinfo.cc (pinfo_fixup_after_fork): Duplicate with no rights. (pinfo::set_acl): New. * spawn.cc (spawn_guts): Call myself.set_acl.
This commit is contained in:
@ -679,6 +679,9 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
||||
else
|
||||
{
|
||||
PSID sid = cygheap->user.sid ();
|
||||
/* Give access to myself */
|
||||
if (mode == _P_OVERLAY)
|
||||
myself.set_acl();
|
||||
|
||||
/* Set security attributes with sid */
|
||||
PSECURITY_ATTRIBUTES sec_attribs = sec_user_nih (sa_buf, sid);
|
||||
|
Reference in New Issue
Block a user