mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s4-acl: SEC_FLAG_MAXIMUM_ALLOWED doesn't auto-apply privilege access masks
This commit is contained in:
parent
53dec869b8
commit
c3b09d18a8
@ -34,12 +34,8 @@ static uint32_t access_check_max_allowed(const struct security_descriptor *sd,
|
||||
|
||||
if (security_token_has_sid(token, sd->owner_sid)) {
|
||||
granted |= SEC_STD_WRITE_DAC | SEC_STD_READ_CONTROL | SEC_STD_DELETE;
|
||||
}
|
||||
if (security_token_has_privilege(token, SEC_PRIV_RESTORE)) {
|
||||
granted |= SEC_RIGHTS_PRIV_RESTORE;
|
||||
}
|
||||
if (security_token_has_privilege(token, SEC_PRIV_BACKUP)) {
|
||||
granted |= SEC_RIGHTS_PRIV_BACKUP;
|
||||
} else if (security_token_has_privilege(token, SEC_PRIV_RESTORE)) {
|
||||
granted |= SEC_STD_DELETE;
|
||||
}
|
||||
|
||||
if (sd->dacl == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user