]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_vfsops.c
Posix ACL Support
authorMassimo Maggi <me@massimo-maggi.eu>
Mon, 28 Oct 2013 16:22:15 +0000 (09:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Oct 2013 21:54:26 +0000 (14:54 -0700)
commit023699cd62eb033ebed5e5fae4e13acaba4c5461
treecc36188907422afa2ae4f74c217760d5379805b4
parent7c2448a33ee71be1671c158a167559d1320ff839
Posix ACL Support

This change adds support for Posix ACLs by storing them as an xattr
which is common practice for many Linux file systems.  Since the
Posix ACL is stored as an xattr it will not overwrite any existing
ZFS/NFSv4 ACLs which may have been set.  The Posix ACL will also
be non-functional on other platforms although it may be visible
as an xattr if that platform understands SA based xattrs.

By default Posix ACLs are disabled but they may be enabled with
the new 'aclmode=noacl|posixacl' property.  Set the property to
'posixacl' to enable them.  If ZFS/NFSv4 ACL support is ever added
an appropriate acltype will be added.

This change passes the POSIX Test Suite cleanly with the exception
of xacl/00.t test 45 which is incorrect for Linux (Ext4 fails too).

  http://www.tuxera.com/community/posix-test-suite/

Signed-off-by: Massimo Maggi <me@massimo-maggi.eu>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #170
17 files changed:
config/kernel-acl.m4 [new file with mode: 0644]
config/kernel-xattr-handler.m4
config/kernel.m4
include/linux/vfs_compat.h
include/linux/xattr_compat.h
include/sys/fs/zfs.h
include/sys/zfs_ioctl.h
include/sys/zfs_vfsops.h
include/sys/zpl.h
man/man8/zfs.8
module/zcommon/zfs_prop.c
module/zfs/zfs_acl.c
module/zfs/zfs_vfsops.c
module/zfs/zfs_vnops.c
module/zfs/zpl_inode.c
module/zfs/zpl_super.c
module/zfs/zpl_xattr.c