diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-07-19 08:36:32 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-07-19 08:36:32 +0000 |
commit | 5f9c8e2a8726a320619242b14802b7ac2a05161c (patch) | |
tree | 12955c9c87fde1d4a9478a560cc28806c3419af4 /winsup/cygwin/pinfo.cc | |
parent | cce28460fe93c21d30e227331dcbbdf1d29a96b9 (diff) | |
download | cygnal-5f9c8e2a8726a320619242b14802b7ac2a05161c.tar.gz cygnal-5f9c8e2a8726a320619242b14802b7ac2a05161c.tar.bz2 cygnal-5f9c8e2a8726a320619242b14802b7ac2a05161c.zip |
* autoload.cc (SetUserObjectSecurity): Drop.
* pinfo.cc (pinfo::set_acl): Use NtSetSecurityObject instead of
SetKernelObjectSecurity.
* spawn.cc (spawn_guts): Use NtSetSecurityObject instead of
SetUserObjectSecurity.
* uinfo.cc (cygheap_user::init): Ditto.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 6e6a85c1d..8c4702dfd 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -291,6 +291,7 @@ pinfo::set_acl() { PACL acl_buf = (PACL) alloca (1024); SECURITY_DESCRIPTOR sd; + NTSTATUS status; sec_acl (acl_buf, true, true, cygheap->user.sid (), well_known_world_sid, FILE_MAP_READ); @@ -298,8 +299,8 @@ pinfo::set_acl() debug_printf ("InitializeSecurityDescriptor %E"); else if (!SetSecurityDescriptorDacl (&sd, TRUE, acl_buf, FALSE)) debug_printf ("SetSecurityDescriptorDacl %E"); - else if (!SetKernelObjectSecurity (h, DACL_SECURITY_INFORMATION, &sd)) - debug_printf ("SetKernelObjectSecurity %E"); + else if ((status = NtSetSecurityObject (h, DACL_SECURITY_INFORMATION, &sd))) + debug_printf ("NtSetSecurityObject %lx", status); } const char * |