diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-10-21 11:05:32 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-10-21 11:05:32 +0000 |
commit | 1b4153db7433184f220941a0954a521bbb01ec04 (patch) | |
tree | 6c598d3f46537e016212df4a546f48bced54bdc3 /winsup/cygwin/security.h | |
parent | 9367c0dcff74e0462e4f5d4fd9886cc1a19b04c5 (diff) | |
download | cygnal-1b4153db7433184f220941a0954a521bbb01ec04.tar.gz cygnal-1b4153db7433184f220941a0954a521bbb01ec04.tar.bz2 cygnal-1b4153db7433184f220941a0954a521bbb01ec04.zip |
* fhandler.cc (fhandler_base::fhaccess): Call check_registry_access
for registry keys/values if ntsec is on.
* security.cc (check_access): New static function derived from
check_file_access, but object type agnostic.
(check_file_access): Only do file specific stuff. Call check_access.
(check_registry_access): New access check function for registry keys/
values.
* security.h (check_registry_access): Declare.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index ef0871fdd..94e3cc3f5 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -302,6 +302,7 @@ LONG __stdcall write_sd (HANDLE fh, const char *file, security_descriptor &sd); bool __stdcall add_access_allowed_ace (PACL acl, int offset, DWORD attributes, PSID sid, size_t &len_add, DWORD inherit); bool __stdcall add_access_denied_ace (PACL acl, int offset, DWORD attributes, PSID sid, size_t &len_add, DWORD inherit); int __stdcall check_file_access (const char *, int); +int __stdcall check_registry_access (HANDLE, int); void set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa, security_descriptor &sd_buf); |