diff options
-rw-r--r-- | libcli/security/access_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcli/security/access_check.c b/libcli/security/access_check.c index 936ffca242..2425e8a5aa 100644 --- a/libcli/security/access_check.c +++ b/libcli/security/access_check.c @@ -243,6 +243,9 @@ NTSTATUS se_access_check(const struct security_descriptor *sd, } } + /* Explicitly denied bits always override */ + bits_remaining |= explicitly_denied_bits; + /* The owner always gets owner rights as defined above. */ if (security_token_has_sid(token, sd->owner_sid)) { if (owner_rights_default) { @@ -258,9 +261,6 @@ NTSTATUS se_access_check(const struct security_descriptor *sd, } } - /* Explicitly denied bits always override */ - bits_remaining |= explicitly_denied_bits; - /* * We check privileges here because they override even DENY entries. */ |