History log of /freebsd-10.0-release/bin/setfacl/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


248972 01-Apr-2013 trasz

Mention that read_attributes, write_attributes, read_acl and write_acl
are always permitted for the file owner.

PR: kern/174948
MFC after: 1 week


246559 08-Feb-2013 trasz

Fix NFSv4 permission description in setfacl(1) manual page: the 'D'
means delete_child, not delete.

MFC after: 1 week


246558 08-Feb-2013 trasz

Improve description of the "-m" option to setfacl(1).

Submitted by: scottl
MFC after: 1 week


246557 08-Feb-2013 trasz

In the setfacl(1) manual page, make it clear that for NFSv4 ACLs,
one should really use -a and -x instead of -m.

MFC after: 1 week


241720 19-Oct-2012 ed

Fix warnings found by -Wmising-variable-declarations.

This self-written compiler warning, which is hopefully going to be
committed into LLVM sources soon, warns about potentially missing
`static' keywords, similar to -Wmissing-prototypes.

- bin/pax: Move external declaration of chdname and s_mask into extern.h.
- bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h.
- sbin/mount_fusefs: Remove char *progname; use getprogname().
- others: add `static' where possible.


240087 04-Sep-2012 trasz

Fix an error in setfacl(1) that manifested like this:

# setfacl -m u:trasz:rwx x
# setfacl -m u:root:rwx x
# getfacl x
# file: x
# owner: root
# group: wheel
user::rw-
user:root:rwx
user:trasz:rwx
group::r--
mask::rwx
other::r--
# setfacl -m u:root:rwx x
setfacl: x: acl_calc_mask() failed: Invalid argument
setfacl: x: failed to set ACL mask

For NFSv4 ACLs, this sort of situation would result in duplicated
entries.

MFC after: 1 month


240084 04-Sep-2012 trasz

Make "setfacl -bd" an alias for "setfacl -k". Previously it would crash
on assert.

PR: bin/165807
MFC after: 1 month


240083 04-Sep-2012 trasz

Make setfacl(1) behave properly in situations like "setfacl -kd".

MFC after: 1 month


240076 03-Sep-2012 trasz

Fix compact form of "synchronize" permission in setfacl(1) manual page - it
should be "s", not "S".

PR: docs/162380
MFC after: 2 weeks


233648 29-Mar-2012 eadler

Remove trailing whitespace per mdoc lint warning

Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days


220465 09-Apr-2011 trasz

Make it possible to use permission sets (full_set, modify_set, read_set
and write_set) with setfacl(1).

PR: kern/154113
Submitted by: Shawn Webb <lattera at gmail dot com> (earlier version)
MFC after: 1 month


216922 03-Jan-2011 jh

Increase carried_error if we skip a file due to an error. This ensures
that setfacl(1) exits with proper exit status on failure.

PR: bin/149780
Submitted by: Ævar Arnfjörð Bjarmason (original version)
Reviewed by: trasz
MFC after: 3 weeks


210546 27-Jul-2010 bcr

Typo fix: s/ommited/omitted

MFC after: 4 days


208035 13-May-2010 trasz

Update authors and history.

MFC after: 1 week


204819 07-Mar-2010 joel

Switch to our preferred license text.

Approved by: jedgar


201018 26-Dec-2009 trasz

Fix breakage introduced in last commit.


201016 26-Dec-2009 trasz

Improve ACL branding mismatch detection and reporting in some rare cases,
such as "setfacl -m ''".


196936 07-Sep-2009 trasz

Add NFSv4 support to setfacl(1).

Reviewed by: rwatson


182813 06-Sep-2008 trasz

Fix double free in setfacl(1). Description from the author:

Initially, 'acl' (an 'acl_t *') is allocated, and its ACCESS_ACL and
DEFAULT_ACL fields are passed to the 'libc' ACL routines for subsequent
allocation. If the '-m' option (merge existing ACL with a new one) is
specified, then 'set_acl_mask()' will be called and passed one of the
two ACLs. This function, in turn, replaces this given ACL structure by
another, freshly allocated. However, the pointer in the 'acl' variable
in the caller is not updated. The caller then proceeds to free the ACL,
incurring in a double free condition.

Submitted by: Pedro Martelletto <pedro at ambientworks.net>
Approved by: rwatson (mentor)


180334 06-Jul-2008 csjp

Add hard sentence breaks.

Pointed out by: rwatson
MFC after: 1 week


180330 06-Jul-2008 csjp

Document default ACLs and how to use them.
MFC after: 1 week


167000 26-Feb-2007 mckusick

Implement the -h flag (set an ACL on a symbolic link).
Before this fix the -h flag was ignored (i.e. setfacl
always set the ACL on the file pointed to by the symbolic
link even when the -h flag requested that the ACL be set
on the symbolic link itself).


162379 17-Sep-2006 ru

Markup fixes.


159465 09-Jun-2006 maxim

o Fix grammar, format.


159464 09-Jun-2006 kib

Document the way to get list of files to process from the stdin.

MFC after: 1 week
Approved by: kan (mentor)


159463 09-Jun-2006 kib

Copy filename read from the stdin into the private buffer. Otherwise,
next read filename overwrite previous one, resulting in acl being
applied only to the last name in the list.

Submitted by: Oleg Lomaka <oleg.lomaka at gmail com>
MFC after: 1 week
Approved by: kan (mentor)


153380 13-Dec-2005 ru

[mdoc] add missing space before a punctuation type argument.


141578 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


140353 16-Jan-2005 ru

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


131484 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


130426 13-Jun-2004 obrien

style.Makefile(5)


118603 07-Aug-2003 rwatson

Add additional documentation to setfacl(1) regarding the behavior of
tools such as chmod(1) and ls(1) when it comes to acting on objects
that have POSIX.1e extended ACLs. Specifically, discuss the
substitution of the mask entry for the group entry in the mode
representation of the ACL. Differently worded from the submission,
and could probably use further refinement.

PR: 55319
Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>


118602 07-Aug-2003 rwatson

-v no longer a valid argument to setfacl(1) -- remove from usage().

PR: 55318
Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>


117734 18-Jul-2003 rwatson

When reporting an error internalizing an ACL string, print out the
ACL that generated the error, rather than the function, which is
more user-friendly.

Obtained from: TrustedBSD Project
Product of: France


108450 30-Dec-2002 rwatson

Add "-h" arguments to getfacl and setfacl, which behave in a manner
similar to "-h" on chown, chmod, etc, causing the operation to occur
on a final symlink in the provided path, rather than its target.

Obtained from: TrustedBSD Project


99110 30-Jun-2002 obrien

Consistently use FBSDID


90888 19-Feb-2002 jedgar

Remove extraneous blank line


90887 19-Feb-2002 jedgar

Use acl_dup() to duplicate an ACL instead of rolling our own


90127 03-Feb-2002 jedgar

Use a more correct method of copying entire ACLs (fixes
operation under Linux).


87354 04-Dec-2001 ru

Spelling.


87323 04-Dec-2001 obrien

Default to WARNS=2. Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by: mike


87260 03-Dec-2001 jedgar

Move the code merging ACL_USER and ACL_GROUP objects from under
two nested while loops into a separate function.

Obtained from: TrustedBSD Project


87259 03-Dec-2001 jedgar

Add defines for access and default ACLs (ACCESS_ACL/DEFAULT_ACL)
to enhance readability.

Obtained from: TrustedBSD Project


87254 03-Dec-2001 jedgar

style(9) cleanups mostly consisting of:
o explicitly check return values and variables against a value
o return x; -> return (x);
o fix inconsistent sysexits usage by nuking it (partially
suggested by bde)

Obtained from: TrustedBSD Project


87253 03-Dec-2001 jedgar

Correct example to remove *all* extended ACL entries and
clarify description.


87226 02-Dec-2001 jedgar

o Expand the explaination of the -b option WRT the resulting
group ACL entry in relation to the existing group and mask
ACL entries.
o Move the explanation of multiple ACL entries on the command
line to the ACL ENTRIES section.

Obtained from: TrustedBSD Project


87224 02-Dec-2001 jedgar

o Correct error message forgotten in the last commit (malloc() -> calloc())
o Fix style nits

Submitted by: bde


87181 02-Dec-2001 jedgar

Use calloc(3) instead of rolling our own.


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


78624 22-Jun-2001 dd

WARNS= -> WARNS?=

Submitted by: Mike Barcroft <mike@q9media.com>


76881 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC After: 1 week


76233 03-May-2001 jedgar

Correct assignment of the resulting ACL allowing the mask entry to
be properly set.

Obtained from: TrustedBSD Project


75928 24-Apr-2001 jedgar

o Separate acl_t into internal and external representations as
required by POSIX.1e. This maintains the current 'struct acl'
in the kernel while providing the generic external acl_t
interface required to complete the ACL editing library.
o Add the acl_get_entry() function.
o Convert the existing ACL utilities, getfacl and setfacl, to
fully make use of the ACL editing library.

Obtained from: TrustedBSD Project


75670 18-Apr-2001 ru

mdoc(7) police: normalize .Nd.


75189 04-Apr-2001 tmm

setfacl and getfacl no longer need to link against libposix1e, since it
has been integrated into libc.

Approved by: rwatson
Obtained from: TrustedBSD Project


74676 23-Mar-2001 ru

mdoc(7) police: fix markup and some spelling.


74506 20-Mar-2001 jedgar

Remove extra CFLAGS
Add DPADD

Submitted by: bde


74489 19-Mar-2001 jedgar

Remove 'NOSHARED=yes' (../Makefile.inc already sets this)


74468 19-Mar-2001 rwatson

o Missed in addition of setfacl.h in setfacl(1)


74465 19-Mar-2001 rwatson

o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLs
from files and directories, and setfacl sets ACLs on files and directories.

Submitted by: jedgar
Obtained from: TrustedBSD Project