Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 09:37:42 +0100 (CET)
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/165807: setfacl -b is broken
Message-ID:  <201203070837.q278bgcI048024@kazi.fit.vutbr.cz>
Resent-Message-ID: <201203070840.q278eFbR014724@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165807
>Category:       bin
>Synopsis:       setfacl -b is broken
>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 Mar 07 08:40:15 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Rudolf Cejka
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:
>Description:

setfacl -b is broken, because it does not remove ACL mask (it seems to me,
that in FreeBSD once on some object ACLs are set, it is not possible to
completely remove then anymore - in Linux it is possible to use
setfacl -b file or setfacl -x mask file if there is remaining just mask):

# touch file
# setfacl -m u:root:rw file
# setfacl -b file
# getfacl file
# file: file
# owner: root
# group: wheel
user::rw-
group::r--
mask::r--
other::r--

Also, when setfacl -b is used on default direcotry ACLs, which are not
created yet, it dumps core:

# mkdir dir
# setfacl -b -d dir
Assertion failed: (_acl_brand(acl_new) == ACL_BRAND_POSIX), function _posix1e_acl_strip_np, file /usr/src/lib/libc/posix1e/acl_strip.c, line 129.
Abort trap: 6 (core dumped)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



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