kern/139076: [zfs] ZFS file system has SysV group ownership semantics not BSD

Sean Winn sean at gothic.net.au
Wed Sep 23 07:30:04 UTC 2009


>Number:         139076
>Category:       kern
>Synopsis:       [zfs] ZFS file system has SysV group ownership semantics not BSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 23 07:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Sean Winn
>Release:        FreeBSD 8.0-RC1 i386
>Organization:
>Environment:
FreeBSD queen.gothic.net.au 8.0-RC1 FreeBSD 8.0-RC1 #4: Mon Sep 21 12:22:35 EST 2009     root at queen.gothic.net.au:/usr/obj/usr/src/sys/QUEEN  i386

>Description:
GID of files created in a directory take on the current GID of the user not the GID of the enclosing directory, and SGID on the directory forces BSD semantics; ie. it's using SysV ownerships.


>How-To-Repeat:
17:15 Wed 23-Sep sean at queen [~/tmp] ls -ld .
drwxrwxr-x  95 sean  sean  299 Sep 16 10:55 .
17:16 Wed 23-Sep sean at queen [~/tmp] sudo touch yyy
Password:
17:16 Wed 23-Sep sean at queen [~/tmp] ls -ld yyy
-rw-r--r--  1 root  wheel  0 Sep 23 17:16 yyy
17:16 Wed 23-Sep sean at queen [~/tmp] chmod 2775 .
17:16 Wed 23-Sep sean at queen [~/tmp] sudo touch yyy2
17:16 Wed 23-Sep sean at queen [~/tmp] ls -ld yyy2
-rw-r--r--  1 root  sean  0 Sep 23 17:16 yyy2


>Fix:
Workaround is to use SGID on the directories, but its a pretty big change when migrating from UFS to ZFS

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list