aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/security.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-08-07 15:09:54 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-08-07 15:09:54 +0000
commit86fb0393244e5827070e0bb0328a5b40fe5c0268 (patch)
tree8c596fa5f655c6479e1c4bd745cee2522fc35aa6 /winsup/cygwin/security.h
parentf5e8e2be4a184e8d7f653af19fb62fb576c28d39 (diff)
downloadnewlib-86fb0393244e5827070e0bb0328a5b40fe5c0268.zip
newlib-86fb0393244e5827070e0bb0328a5b40fe5c0268.tar.gz
newlib-86fb0393244e5827070e0bb0328a5b40fe5c0268.tar.bz2
* dir.cc (mkdir): Set security attributes correctly for
CreateDirectoryA () call if ntsec is on. Don't call set_file_attributes () then. * fhandler.cc (fhandler_base::open): Ditto for CreateFileA () call. * path.cc (symlink): Ditto. * security.cc (set_security_attribute): New function. * security.h: Add declaration for `allow_ntea' and `set_security_attribute'.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r--winsup/cygwin/security.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h
index 49c41c8..e206080 100644
--- a/winsup/cygwin/security.h
+++ b/winsup/cygwin/security.h
@@ -151,6 +151,7 @@ legal_sid_type (SID_NAME_USE type)
|| type == SidTypeAlias || type == SidTypeWellKnownGroup;
}
+extern BOOL allow_ntea;
extern BOOL allow_ntsec;
extern BOOL allow_smbntsec;
@@ -171,6 +172,9 @@ LONG __stdcall write_sd(const char *file, PSECURITY_DESCRIPTOR sd_buf, DWORD 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);
+void set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa,
+ void *sd_buf, DWORD sd_buf_size);
+
/* Try a subauthentication. */
HANDLE subauth (struct passwd *pw);
/* Try creating a token directly. */