vfs_nfs4acl_xattr: modernize ACL inheritance
authorRalph Boehme <slow@samba.org>
Mon, 16 Oct 2017 16:05:51 +0000 (18:05 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 7 Nov 2017 23:20:08 +0000 (00:20 +0100)
commit7f62b16a12980b203e44a9e95d8e96d12f479453
tree61405ad3e0e7010244e186e7d82cb6dd8aaca8d5
parent31a8fbff8d2e5bd27b44a0eb14608f8f43ce2a6b
vfs_nfs4acl_xattr: modernize ACL inheritance

This changes the way ACL inheritance is achieved in this
module.

Previously the module recursed to the next parent directory until the
share root was reached or a directory with an ACL xattr. If the share
root didn't contain an ACL xattr either a default ACL would be used.

This commit removed this recursive scanning and replaces it with the
same mechanism used by vfs_acl_xattr: by setting "inherit acls = yes"
just let smbd do the heavy lefting and inheritance.

For any file without ACL xattr we still synthesize a default ACL,
leveraging the existing default ACL function used by vfs_acl_xattr.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail
source3/modules/vfs_nfs4acl_xattr.c