Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Feb 2017 14:34:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 216886] ZFS with aclinherit and aclmode set to passthrough adds an extra default ACLs
Message-ID:  <bug-216886-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216886

            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.orlouv@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 defau=
lt
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=3Dpassthrough test && zfs set
aclmode=3Dpassthrough 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)#=20
[/test](17:16:28)# touch test_file_1
[/test](17:16:50)# getfacl test_file_1=20
# 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)#

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216886-8>