Solved ACL on ZFS - convert from nfsv4 to posixacl

Hi,

I'm running several hosts as iocage jails on FreeBSD 13.1 On some of them I need to manage ACL. Since I'm managing my systems with Ansible I'm confronted with some kind of conflict.
On Linux I'm using posix ACL and I would also like to do that on FreeBSD as well. I don't know why but the ZFS Volumes are all set to NFSv4 ACL as default.

I would like to change that to posix now, so my Ansible tasks can just set the ACL on both Linux and FreeBSD systems equally.
Switching from NFS to POSIX ACL doesn't seem to work.

I go
Code:
zfs set acltype=posixacl zroot/iocage/jails/jail/root
But from that point on every acl command fails with the error `Invalid argument`.

Code:
getfacl temp
# file: temp
# owner: root
# group: jochen
getfacl: temp: Invalid argument

Do I have to convert the ACLs somehow or what is a valid approach for my situation?
I've read that NFS ACL are more complex and also that the ansible.posix.acl is having problems with NFS acl. That is why I want to go with Posix ACL in the first place.
 
Code:
posix     indicates POSIX ACLs should be used.  POSIX ACLs are spe-
             cific to Linux and    are not    functional on other platforms.
 
Back
Top