diff options
author | Jeremy Allison <jra@samba.org> | 2001-09-22 06:45:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-09-22 06:45:24 +0000 |
commit | 0492effcf36bc1229d0d2e9250b6c6c36af0b117 (patch) | |
tree | 7b818ebc9f8a36d459cb96ffee0e7f428fae43b5 /source3/smbd | |
parent | 81ad252fbc3720939dccbda23ef447af071aab14 (diff) | |
download | samba-0492effcf36bc1229d0d2e9250b6c6c36af0b117.tar.gz samba-0492effcf36bc1229d0d2e9250b6c6c36af0b117.tar.bz2 samba-0492effcf36bc1229d0d2e9250b6c6c36af0b117.zip |
Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.
Jeremy.
(This used to be commit bc7963bd643422cce081b6284e3bdd49ae3a02ab)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/posix_acls.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 18a635336c..64dd51f193 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -715,6 +715,17 @@ static BOOL create_canon_ace_lists(files_struct *fsp, SEC_ACE *psa = &dacl->ace[i]; /* + * Ignore non-mappable SIDs (NT Authority, BUILTIN etc). + */ + + if (non_mappable_sid(&psa->sid)) { + fstring str; + DEBUG(10,("create_canon_ace_lists: ignoring non-mappable SID %s\n", + sid_to_string(str, &psa->sid) )); + continue; + } + + /* * Create a cannon_ace entry representing this NT DACL ACE. */ |