diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-29 13:48:25 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-29 13:48:25 +0400 |
commit | 3e8e0c33c00e384867d394c9a84a3d31f5208a61 (patch) | |
tree | b03eee61d848c3e30e9e171fc60908eeeb749e76 /winsup/cygwin/advapi32.cc | |
parent | bd139e52b44f2a066e6908e1cf84a85e16aa502a (diff) |
* advapi32.cc (AccessCheck): Remove.
(PrivilegeCheck): Remove.
(OpenThreadToken): Remove.
* fhandler_tty.cc: Replace above functions throughout with their
ntdll.dll equivalent.
* security.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/advapi32.cc')
-rw-r--r-- | winsup/cygwin/advapi32.cc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/winsup/cygwin/advapi32.cc b/winsup/cygwin/advapi32.cc index 41eb71e60..fba18baa8 100644 --- a/winsup/cygwin/advapi32.cc +++ b/winsup/cygwin/advapi32.cc @@ -20,27 +20,6 @@ details. */ return NT_SUCCESS (status); BOOL WINAPI -AccessCheck (PSECURITY_DESCRIPTOR sd, HANDLE tok, DWORD access, - PGENERIC_MAPPING mapping, PPRIVILEGE_SET pset, LPDWORD psetlen, - LPDWORD granted, LPBOOL allowed) -{ - NTSTATUS status, astatus; - - status = NtAccessCheck (sd, tok, access, mapping, pset, psetlen, granted, - &astatus); - if (NT_SUCCESS (status)) - *allowed = NT_SUCCESS (astatus); - DEFAULT_NTSTATUS_TO_BOOL_RETURN -} - -BOOL WINAPI -PrivilegeCheck (HANDLE tok, PPRIVILEGE_SET pset, LPBOOL res) -{ - NTSTATUS status = NtPrivilegeCheck (tok, pset, (PBOOLEAN) res); - DEFAULT_NTSTATUS_TO_BOOL_RETURN -} - -BOOL WINAPI EqualSid (PSID sid1, PSID sid2) { return !!RtlEqualSid (sid1, sid2); @@ -76,13 +55,6 @@ MakeSelfRelativeSD (PSECURITY_DESCRIPTOR abs_sd, PSECURITY_DESCRIPTOR rel_sd, } BOOL WINAPI -OpenThreadToken (HANDLE thread, DWORD access, BOOL as_self, PHANDLE tok) -{ - NTSTATUS status = NtOpenThreadToken (thread, access, as_self, tok); - DEFAULT_NTSTATUS_TO_BOOL_RETURN -} - -BOOL WINAPI RevertToSelf () { HANDLE tok = NULL; |