diff options
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index ff25480..c40adf1 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -411,23 +411,23 @@ legal_sid_type (SID_NAME_USE type) class path_conv; /* File manipulation */ -int __reg3 get_file_attribute (HANDLE, path_conv &, mode_t *, +int get_file_attribute (HANDLE, path_conv &, mode_t *, uid_t *, gid_t *); -int __reg3 set_created_file_access (HANDLE, path_conv &, mode_t); -int __reg2 get_object_sd (HANDLE, security_descriptor &); -int __reg3 get_object_attribute (HANDLE, uid_t *, gid_t *, mode_t *); -int __reg3 set_object_attribute (HANDLE, uid_t, gid_t, mode_t); -int __reg3 create_object_sd_from_attribute (uid_t, gid_t, mode_t, +int set_created_file_access (HANDLE, path_conv &, mode_t); +int get_object_sd (HANDLE, security_descriptor &); +int get_object_attribute (HANDLE, uid_t *, gid_t *, mode_t *); +int set_object_attribute (HANDLE, uid_t, gid_t, mode_t); +int create_object_sd_from_attribute (uid_t, gid_t, mode_t, security_descriptor &); -int __reg3 set_object_sd (HANDLE, security_descriptor &, bool); +int set_object_sd (HANDLE, security_descriptor &, bool); -int __reg3 get_reg_attribute (HKEY hkey, mode_t *, uid_t *, gid_t *); -LONG __reg3 get_file_sd (HANDLE fh, path_conv &, security_descriptor &, bool); -LONG __reg3 set_file_sd (HANDLE fh, path_conv &, security_descriptor &, bool); -bool __reg3 add_access_allowed_ace (PACL, DWORD, PSID, size_t &, DWORD); -bool __reg3 add_access_denied_ace (PACL, DWORD, PSID, size_t &, DWORD); -int __reg3 check_file_access (path_conv &, int, bool); -int __reg3 check_registry_access (HANDLE, int, bool); +int get_reg_attribute (HKEY hkey, mode_t *, uid_t *, gid_t *); +LONG get_file_sd (HANDLE fh, path_conv &, security_descriptor &, bool); +LONG set_file_sd (HANDLE fh, path_conv &, security_descriptor &, bool); +bool add_access_allowed_ace (PACL, DWORD, PSID, size_t &, DWORD); +bool add_access_denied_ace (PACL, DWORD, PSID, size_t &, DWORD); +int check_file_access (path_conv &, int, bool); +int check_registry_access (HANDLE, int, bool); void set_security_attribute (path_conv &pc, int attribute, PSECURITY_ATTRIBUTES psa, @@ -514,7 +514,7 @@ void set_cygwin_privileges (HANDLE token); /* Various types of security attributes for use in Create* functions. */ extern SECURITY_ATTRIBUTES sec_none, sec_none_nih, sec_all, sec_all_nih; -extern SECURITY_ATTRIBUTES *__reg3 __sec_user (PVOID, PSID, PSID, +extern SECURITY_ATTRIBUTES *__sec_user (PVOID, PSID, PSID, DWORD, BOOL); extern PSECURITY_DESCRIPTOR _recycler_sd (void *buf, bool users, bool dir); @@ -531,9 +531,9 @@ extern PSECURITY_DESCRIPTOR _everyone_sd (void *buf, ACCESS_MASK access); extern bool sec_acl (PACL acl, bool original, bool admins, PSID sid1 = NO_SID, PSID sid2 = NO_SID, DWORD access2 = 0); -ssize_t __reg3 read_ea (HANDLE, path_conv &, const char *, +ssize_t read_ea (HANDLE, path_conv &, const char *, char *, size_t); -int __reg3 write_ea (HANDLE, path_conv &, const char *, const char *, +int write_ea (HANDLE, path_conv &, const char *, const char *, size_t, int); /* Note: sid1 is usually (read: currently always) the current user's |