mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-28 17:39:23 +03:00
Honor CONFIG_FS_POSIX_ACL kernel option
The required Posix ACL interfaces are only available for kernels with CONFIG_FS_POSIX_ACL defined. Therefore, only enable Posix ACL support for these kernels. All major distribution kernels enable CONFIG_FS_POSIX_ACL by default. If your kernel does not support Posix ACLs the following warning will be printed at ZFS module load time. "ZFS: Posix ACLs disabled by kernel" Signed-off-by: Massimo Maggi <me@massimo-maggi.eu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1825
This commit is contained in:
committed by
Brian Behlendorf
parent
78e2739d3c
commit
b695c34ea4
@@ -165,8 +165,13 @@ acltype_changed_cb(void *arg, uint64_t newval)
|
||||
zsb->z_sb->s_flags &= ~MS_POSIXACL;
|
||||
break;
|
||||
case ZFS_ACLTYPE_POSIXACL:
|
||||
#ifdef CONFIG_FS_POSIX_ACL
|
||||
zsb->z_acl_type = ZFS_ACLTYPE_POSIXACL;
|
||||
zsb->z_sb->s_flags |= MS_POSIXACL;
|
||||
#else
|
||||
zsb->z_acl_type = ZFS_ACLTYPE_OFF;
|
||||
zsb->z_sb->s_flags &= ~MS_POSIXACL;
|
||||
#endif /* CONFIG_FS_POSIX_ACL */
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user