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'.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user