diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-09-10 13:32:13 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-09-10 13:32:13 +0400 |
commit | 67a9307898f94346cbd4c83b6bae4f9611607818 (patch) | |
tree | 89c139fb02e34b2fbae48cbc34888148c5ce50d5 /winsup/cygwin/ntdll.h | |
parent | 28e19bafa0e3398a3e346effd4917db6ec8b5c85 (diff) |
* security.cc (get_file_sd): Add bool parameter justcreated. Use
GetSecurityInfo only if justcreated is true, NtQuerySecurityObject
otherwise. Add comment to explain why. Don't waste time to call
NtQuerySecurityObject twice, just allocate big enough area.
(get_file_attribute): Call get_file_sd with justcreated set to false.
(set_file_attribute): Call get_file_sd with justcreated depending on
S_JUSTCREATED pseudo file attribute.
(check_file_access): Call get_file_sd with justcreated set to false.
* sec_acl.cc (setacl): Ditto.
(getacl): Ditto.
* security.h: Convert many functions to regparm functions.
(get_file_sd): Declare with extra bool parameter.
Diffstat (limited to 'winsup/cygwin/ntdll.h')
0 files changed, 0 insertions, 0 deletions