https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216886
Bug ID: 216886 Summary: ZFS with aclinherit and aclmode set to passthrough adds an extra default ACLs Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: andrey.orl...@gmail.com This behavior starts from 11.0 and lasts till now (revision HEAD 313385) 1. ZFS "aclinherit" and "aclmode" both set to "passthrough". 2. every syscall to create FileSystem object (dir or file) adds extra default ACls. How to reproduce: [~](16:49:59)# uname -a FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r313385M: Fri Feb 7 11:18:43 UTC 2017 root@msk:/usr/obj/data/src_head/sys/KERNEL_HEAD amd64 [/](17:11:57)# zpool create test ada1 [/](17:12:02)# zfs list NAME USED AVAIL REFER MOUNTPOINT test 292K 899G 88K /test [/](17:12:15)# zfs set aclinherit=passthrough test && zfs set aclmode=passthrough test [/](17:12:40)# zfs get all test | grep acl test aclmode passthrough local test aclinherit passthrough local [/](17:12:45)# cd /test [/test](17:13:38)# getfacl /test # file: /test # owner: root # group: wheel owner@:rwxp--aARWcCos:-------:allow group@:r-x---a-R-c--s:-------:allow everyone@:r-x---a-R-c--s:-------:allow [/test](17:15:04)# umask 0022 [/test](17:15:06)# setfacl -m owner@:rwxp--aARWcCos:fd-----:allow,group@:a-R-c--s:fd-----:allow,everyone@:a-R-c--s:fd-----:allow /test [/test](17:16:13)# getfacl /test # file: /test # owner: root # group: wheel owner@:rwxp--aARWcCos:fd-----:allow group@:------a-R-c--s:fd-----:allow everyone@:------a-R-c--s:fd-----:allow [/test](17:16:28)# [/test](17:16:28)# touch test_file_1 [/test](17:16:50)# getfacl test_file_1 # file: test_file_1 # owner: root # group: wheel owner@:rwxp--aARWcCos:------I:allow group@:------a-R-c--s:------I:allow everyone@:------a-R-c--s:------I:allow owner@:rw-p--aARWcCos:-------:allow group@:r-----a-R-c--s:-------:allow everyone@:r-----a-R-c--s:-------:allow [/test](17:17:00)# mkdir test_dir_1 [/test](17:18:28)# getfacl test_dir_1 # file: test_dir_1 # owner: root # group: wheel owner@:rwxp--aARWcCos:fd----I:allow group@:------a-R-c--s:fd----I:allow everyone@:------a-R-c--s:fd----I:allow owner@:rwxp--aARWcCos:-------:allow group@:r-x---a-R-c--s:-------:allow everyone@:r-x---a-R-c--s:-------:allow [/test](17:18:35)# -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"