diff options
author | Jeremy Allison <jra@samba.org> | 2008-10-31 18:04:53 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-31 18:04:53 -0700 |
commit | 54eaf2de74b4779919ae97b54abceb3878894bf6 (patch) | |
tree | 21ab7a23cc7f16d8c5afcae7d37c8305f214a7bb /source3/lib/util_seaccess.c | |
parent | 7ca8be13842a488691e33ba3edd0b714e5e3ae6a (diff) | |
download | samba-54eaf2de74b4779919ae97b54abceb3878894bf6.tar.gz samba-54eaf2de74b4779919ae97b54abceb3878894bf6.tar.bz2 samba-54eaf2de74b4779919ae97b54abceb3878894bf6.zip |
Get closer to passing S4 RAW-ACLs.
Jeremy.
Diffstat (limited to 'source3/lib/util_seaccess.c')
-rw-r--r-- | source3/lib/util_seaccess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c index 17d4b78202..d7fdc9a8b9 100644 --- a/source3/lib/util_seaccess.c +++ b/source3/lib/util_seaccess.c @@ -110,7 +110,7 @@ static uint32_t access_check_max_allowed(const struct security_descriptor *sd, { uint32_t denied = 0, granted = 0; unsigned i; - + if (is_sid_in_token(token, sd->owner_sid)) { granted |= SEC_STD_WRITE_DAC | SEC_STD_READ_CONTROL | SEC_STD_DELETE; } else if (user_has_privileges(token, &se_restore)) { @@ -120,7 +120,7 @@ static uint32_t access_check_max_allowed(const struct security_descriptor *sd, if (sd->dacl == NULL) { return granted & ~denied; } - + for (i = 0;i<sd->dacl->num_aces; i++) { struct security_ace *ace = &sd->dacl->aces[i]; |