1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

r15079: w2k3 returns NT_STATUS_PRIVILEGE_NOT_HELD if SEC_FLAG_SYSTEM_SECURITY is

desired but SeSecurityPrivilege isn't granted

metze
(This used to be commit be7285bdebd58e7a86fcc64f7b22b9f533bcc4f5)
This commit is contained in:
Stefan Metzmacher 2006-04-13 13:53:27 +00:00 committed by Gerald (Jerry) Carter
parent 8302b889b4
commit 3f9628ac7c

View File

@ -92,7 +92,7 @@ NTSTATUS sec_access_check(const struct security_descriptor *sd,
if (security_token_has_privilege(token, SEC_PRIV_SECURITY)) {
bits_remaining &= ~SEC_FLAG_SYSTEM_SECURITY;
} else {
return NT_STATUS_ACCESS_DENIED;
return NT_STATUS_PRIVILEGE_NOT_HELD;
}
}