From 42fad6ffa56f4627f414c8b76758bd71592e8400 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 17 Aug 2015 18:29:24 +0200 Subject: Add Authz class to compute exact POSIX user perms in a security descriptor * autoload.cc (AuthzAccessCheck): Import. (AuthzFreeContext): Import. (AuthzInitializeContextFromSid): Import. (AuthzInitializeContextFromToken): Import. (AuthzInitializeResourceManager): Import. * sec_helper.cc (get_sids_info): Remove. (class authz_ctx_cache_entry): New class. (class authz_ctx_cache): New class. (class authz_ctx): New class. (authz_get_user_attribute): New function. * security.h (get_sids_info): Drop prototype. (authz_get_user_attribute): Add prototype. * winlean.h (_AUTHZ_): Define. Signed-off-by: Corinna Vinschen --- winsup/cygwin/autoload.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/cygwin/autoload.cc') diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 0192c6d64..e14647c2d 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -558,6 +558,12 @@ LoadDLLfunc (RegisterEventSourceW, 8, advapi32) LoadDLLfunc (ReportEventW, 36, advapi32) LoadDLLfunc (SystemFunction036, 8, advapi32) /* Aka "RtlGenRandom" */ +LoadDLLfunc (AuthzAccessCheck, 36, authz) +LoadDLLfunc (AuthzFreeContext, 4, authz) +LoadDLLfunc (AuthzInitializeContextFromSid, 32, authz) +LoadDLLfunc (AuthzInitializeContextFromToken, 32, authz) +LoadDLLfunc (AuthzInitializeResourceManager, 24, authz) + LoadDLLfunc (DnsQuery_A, 24, dnsapi) LoadDLLfunc (DnsRecordListFree, 8, dnsapi) -- cgit v1.2.3