diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-07-15 22:40:07 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-07-15 22:40:07 +0000 |
commit | 3a157c0d0d8aa3d9f004fb460bdb925b181c536a (patch) | |
tree | 227a1597f33958c9b242143541a48aa0413aa5df /winsup/cygwin/sec_helper.cc | |
parent | 4c61c04cd3c90b51a941d7eb3c7a3caf56ba00a5 (diff) | |
download | cygnal-3a157c0d0d8aa3d9f004fb460bdb925b181c536a.tar.gz cygnal-3a157c0d0d8aa3d9f004fb460bdb925b181c536a.tar.bz2 cygnal-3a157c0d0d8aa3d9f004fb460bdb925b181c536a.zip |
Change well_known_admin_sid to well_known_admins_sid throughout.
* sec_acl.cc (setacl): Never set DELETE permission. Set
FILE_DELETE_CHILD only on readable and executable directories.
* sec_helper.cc: Add constructor for `well_known_null_sid'.
* security.cc (get_nt_attribute): Set S_ISVTX for directories if
FILE_WRITE_DATA and FILE_EXECUTE but not FILE_DELETE_CHILD is set.
Add evaluation of S_ISVTX, S_ISGID and S_ISUID from NULL ACE.
(alloc_sd): Never set DELETE permission. Set FILE_DELETE_CHILD
only on readable and executable directories.
Add creation of NULL ACE for S_ISVTX, S_ISGID and S_ISUID permissions.
* security.h: Add extern declaration for `well_known_null_sid'.
Diffstat (limited to 'winsup/cygwin/sec_helper.cc')
-rw-r--r-- | winsup/cygwin/sec_helper.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/sec_helper.cc b/winsup/cygwin/sec_helper.cc index 4789732a4..6a6867c48 100644 --- a/winsup/cygwin/sec_helper.cc +++ b/winsup/cygwin/sec_helper.cc @@ -44,6 +44,7 @@ SID_IDENTIFIER_AUTHORITY sid_auth[] = { {SECURITY_NT_AUTHORITY} }; +cygsid well_known_null_sid ("S-1-0-0"); cygsid well_known_world_sid ("S-1-1-0"); cygsid well_known_local_sid ("S-1-2-0"); cygsid well_known_creator_owner_sid ("S-1-3-0"); @@ -54,7 +55,7 @@ cygsid well_known_interactive_sid ("S-1-5-4"); cygsid well_known_service_sid ("S-1-5-6"); cygsid well_known_authenticated_users_sid ("S-1-5-11"); cygsid well_known_system_sid ("S-1-5-18"); -cygsid well_known_admin_sid ("S-1-5-32-544"); +cygsid well_known_admins_sid ("S-1-5-32-544"); char * cygsid::string (char *nsidstr) const |