diff options
author | Jeremy Allison <jra@samba.org> | 2009-12-02 15:02:28 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-12-02 15:02:28 -0800 |
commit | 365c6b4ce0bd84bfb1d9cec03bc835b92b1c5af7 (patch) | |
tree | 89510a69206825497e14a2af7eb1ae4787363dd9 /source3/lib/util_tdb.c | |
parent | 1d013fd03295433698f2b301dbf8324a3db528eb (diff) | |
download | samba-365c6b4ce0bd84bfb1d9cec03bc835b92b1c5af7.tar.gz samba-365c6b4ce0bd84bfb1d9cec03bc835b92b1c5af7.tar.bz2 samba-365c6b4ce0bd84bfb1d9cec03bc835b92b1c5af7.zip |
Restructure the ACL code some more, get the internal semantics
right. The previous bugs were due to the fact that get_nt_acl_internal()
could return an NTSTATUS error if there was no stored ACL blob, but
otherwise would return the underlying ACL from the filysystem. Fix
this so it always returns a valid acl if it can, and if it does not
its an error to be reported back to the client. This then changes
the inherit acl code. Previously we were trying to match Windows
by setting a minimal ACL on a new file that didn't inherit anything
from a parent directory. This is silly - the returned ACL wouldn't
match the underlying UNIX permissions. The current code will correctly
inherit from a parent if a parent has any inheritable ACE entries
that apply to the new object, but will return a mapping from the
underlying UNIX permissions if the parent has no inheritable entries.
This makes much more sense for new files/directories.
Jeremy.
Diffstat (limited to 'source3/lib/util_tdb.c')
0 files changed, 0 insertions, 0 deletions