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:
Pierre Humblet
2003-09-27 01:58:23 +00:00
parent 6806a8b51f
commit 1eb451937a
4 changed files with 29 additions and 2 deletions

View File

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