diff options
author | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2003-09-27 01:58:23 +0000 |
---|---|---|
committer | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2003-09-27 01:58:23 +0000 |
commit | 1eb451937a4b977e050ba7f2a6dd93e7a6baf23c (patch) | |
tree | 713d3ed3af6f38437218f33bb41cc38fc9fad460 /winsup/cygwin/spawn.cc | |
parent | 6806a8b51f96d59cb6dadd86fab4ae7cdecca3ed (diff) | |
download | cygnal-1eb451937a4b977e050ba7f2a6dd93e7a6baf23c.tar.gz cygnal-1eb451937a4b977e050ba7f2a6dd93e7a6baf23c.tar.bz2 cygnal-1eb451937a4b977e050ba7f2a6dd93e7a6baf23c.zip |
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.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index ce61c22d5..ab749d608 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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); |