diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-05-16 09:30:48 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-05-16 09:30:48 +0000 |
commit | ebbdc7034b5251f379ff7959adb5bd65f592ebd2 (patch) | |
tree | ed296dd5207ef129529062efb60e1857dab234c1 /winsup/cygwin/autoload.cc | |
parent | a68fa571015ee98e51c21f2189c6ffed8e0314ba (diff) | |
download | cygnal-ebbdc7034b5251f379ff7959adb5bd65f592ebd2.tar.gz cygnal-ebbdc7034b5251f379ff7959adb5bd65f592ebd2.tar.bz2 cygnal-ebbdc7034b5251f379ff7959adb5bd65f592ebd2.zip |
* syscalls.cc (seteuid): Set default dacl in process token.
Replace in-line code by call to verify_token().
(setegid): Reverse change from 2002-01-21. Add call to
RevertToSelf and set primary group in impersonation token.
* security.cc (create_token): Store pgrpsid in token security
descriptor, except if it already appears in my_grps.
Use sec_acl() in place of get_dacl().
(verify_token): Create from code in seteuid(), with tighter checks.
(get_dacl) Deleted.
(get_group_sidlist): Add argument to indicate if pgrpsid is already
in the groups.
* security.h: Define verify_token().
* autoload.cc: Load GetKernelObjectSecurity().
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 6592ef2c0..c95d8e6c3 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -316,6 +316,7 @@ LoadDLLfuncEx (DuplicateTokenEx, 24, advapi32, 1) LoadDLLfunc (EqualSid, 8, advapi32) LoadDLLfunc (GetAce, 12, advapi32) LoadDLLfunc (GetFileSecurityA, 20, advapi32) +LoadDLLfunc (GetKernelObjectSecurity, 20, advapi32) LoadDLLfunc (GetLengthSid, 4, advapi32) LoadDLLfunc (GetSecurityDescriptorDacl, 16, advapi32) LoadDLLfunc (GetSecurityDescriptorGroup, 12, advapi32) |