ACLs on ZFS - what's the right way?

el_pedr0

Renowned Member
Aug 5, 2016
24
3
68
48
Hi all,

I'd like to start using acls on bind mounts in my Linux containers. My filesystem is ZFS.

I've read that ZFS uses nfsv4 acl while linux uses posixacl which can cause some problems if incorrectly configured. Please could you advise the right approach.

Wiki states
"ZFS uses as default store for ACL hidden files on filesystem. This reduces performance enormously and with several thousand files a system can feel unresponsive. Storing the xattr in the inode will revoke this performance issue.

Modification to do

Code:
zfs set xattr=sa dnodesize=auto vmstore/data
"

This thread from 2015 suggests I should do
Code:
zfs set acltype=posixacl pool_path

I've read elsewhere:
Code:
zfs set aclmode=passthrough dataset
zfs set aclinherit=passthrough-x dataset


Edit: I don't think I actually _need_ to be able to setfacl in the container - I would be happy defining acls on the host. But I do need the containers to obey the acls.
 
Last edited: