History log of /freebsd-10-stable/bin/setfacl/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
307403 16-Oct-2016 sevan

MFC r267667:
use .Mt to mark up email addresses consistently (part1)

PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>


/freebsd-10-stable/bin/chio/chio.1
/freebsd-10-stable/bin/freebsd-version/freebsd-version.1
/freebsd-10-stable/bin/pkill/pkill.1
setfacl.1
/freebsd-10-stable/games/morse/morse.6
/freebsd-10-stable/games/random/random.6
/freebsd-10-stable/sbin/adjkerntz/adjkerntz.8
/freebsd-10-stable/sbin/atm/atmconfig/atmconfig.8
/freebsd-10-stable/sbin/camcontrol/camcontrol.8
/freebsd-10-stable/sbin/dhclient/dhclient-script.8
/freebsd-10-stable/sbin/dhclient/dhclient.8
/freebsd-10-stable/sbin/dhclient/dhclient.conf.5
/freebsd-10-stable/sbin/dhclient/dhclient.leases.5
/freebsd-10-stable/sbin/dhclient/dhcp-options.5
/freebsd-10-stable/sbin/ffsinfo/ffsinfo.8
/freebsd-10-stable/sbin/fsirand/fsirand.8
/freebsd-10-stable/sbin/gbde/gbde.8
/freebsd-10-stable/sbin/geom/class/cache/gcache.8
/freebsd-10-stable/sbin/geom/class/concat/gconcat.8
/freebsd-10-stable/sbin/geom/class/eli/geli.8
/freebsd-10-stable/sbin/geom/class/journal/gjournal.8
/freebsd-10-stable/sbin/geom/class/label/glabel.8
/freebsd-10-stable/sbin/geom/class/mirror/gmirror.8
/freebsd-10-stable/sbin/geom/class/mountver/gmountver.8
/freebsd-10-stable/sbin/geom/class/multipath/gmultipath.8
/freebsd-10-stable/sbin/geom/class/nop/gnop.8
/freebsd-10-stable/sbin/geom/class/part/gpart.8
/freebsd-10-stable/sbin/geom/class/raid/graid.8
/freebsd-10-stable/sbin/geom/class/raid3/graid3.8
/freebsd-10-stable/sbin/geom/class/sched/gsched.8
/freebsd-10-stable/sbin/geom/class/shsec/gshsec.8
/freebsd-10-stable/sbin/geom/class/stripe/gstripe.8
/freebsd-10-stable/sbin/geom/class/virstor/gvirstor.8
/freebsd-10-stable/sbin/geom/core/geom.8
/freebsd-10-stable/sbin/ggate/ggatec/ggatec.8
/freebsd-10-stable/sbin/ggate/ggated/ggated.8
/freebsd-10-stable/sbin/ggate/ggatel/ggatel.8
/freebsd-10-stable/sbin/growfs/growfs.8
/freebsd-10-stable/sbin/gvinum/gvinum.8
/freebsd-10-stable/sbin/hastctl/hastctl.8
/freebsd-10-stable/sbin/hastd/hast.conf.5
/freebsd-10-stable/sbin/hastd/hastd.8
/freebsd-10-stable/sbin/ipfw/ipfw.8
/freebsd-10-stable/sbin/kldconfig/kldconfig.8
/freebsd-10-stable/sbin/kldload/kldload.8
/freebsd-10-stable/sbin/kldstat/kldstat.8
/freebsd-10-stable/sbin/kldunload/kldunload.8
/freebsd-10-stable/sbin/md5/md5.1
/freebsd-10-stable/sbin/mdconfig/mdconfig.8
/freebsd-10-stable/sbin/mount/mount.conf.8
/freebsd-10-stable/sbin/mount_cd9660/mount_cd9660.8
/freebsd-10-stable/sbin/mount_msdosfs/mount_msdosfs.8
/freebsd-10-stable/sbin/mount_unionfs/mount_unionfs.8
/freebsd-10-stable/sbin/natd/natd.8
/freebsd-10-stable/sbin/newfs_msdos/newfs_msdos.8
/freebsd-10-stable/sbin/newfs_nandfs/newfs_nandfs.8
/freebsd-10-stable/sbin/nos-tun/nos-tun.8
/freebsd-10-stable/sbin/nvmecontrol/nvmecontrol.8
/freebsd-10-stable/sbin/rcorder/rcorder.8
/freebsd-10-stable/sbin/reboot/nextboot.8
/freebsd-10-stable/sbin/recoverdisk/recoverdisk.1
/freebsd-10-stable/sbin/sconfig/sconfig.8
/freebsd-10-stable/share/examples/mdoc/example.1
/freebsd-10-stable/share/examples/mdoc/example.3
/freebsd-10-stable/share/examples/mdoc/example.4
/freebsd-10-stable/share/examples/mdoc/example.9
/freebsd-10-stable/share/examples/scsi_target/scsi_target.8
/freebsd-10-stable/tools/tools/ether_reflect/ether_reflect.1
/freebsd-10-stable/tools/tools/fixwhite/fixwhite.1
/freebsd-10-stable/tools/tools/mcgrab/mcgrab.1
/freebsd-10-stable/tools/tools/mctest/mctest.1
/freebsd-10-stable/tools/tools/sysdoc/sysdoc.sh
/freebsd-10-stable/tools/tools/vimage/vimage.8
301919 15-Jun-2016 truckman

MFC r301582

Explicitly NUL terminate the buffer filled by fread().

The fix in r300649 was not sufficient to convince Coverity that the
buffer was NUL terminated, even with the buffer pre-zeroed. Swap
the size and nmemb arguments to fread() so that a valid lenght is
returned, which we can use to terminate the string in the buffer
at the correct location. This should also quiet the complaint about
the return value of fread() not being checked.

Reported by: Coverity
CID: 1019054, 1009614
Secur3ty:
Sponsore dby:

301149 01-Jun-2016 truckman

MFC r300649

Fix Coverity CID 1019054 (String not null terminated) in setfacl.

Increase the size of buf[] by one to allow room for a NUL character
at the end.

Reported by: Coverity
CID: 1019054

290893 15-Nov-2015 ngie

MFC r289195:

Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in to
the FreeBSD test suite

functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a
small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided
by upstream.

A handful of testcases in lib/libarchive/tests have been disabled as they
were failing when run with kyua test (see BROKEN_TESTS in
lib/libarchive/tests/Makefile)

As a sidenote: this removes the check/test targets from the Makefiles as they
don't match the pattern used in the rest of the FreeBSD test suite.

Sponsored by: EMC / Isilon Storage Division

Conflicts:
lib/libarchive/test
usr.bin/cpio/test

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