summaryrefslogtreecommitdiffstats
path: root/bin/setfacl
Commit message (Collapse)AuthorAgeFilesLines
* Fix breakage introduced in last commit.trasz2009-12-261-1/+1
|
* Improve ACL branding mismatch detection and reporting in some rare cases,trasz2009-12-264-8/+32
| | | | such as "setfacl -m ''".
* Add NFSv4 support to setfacl(1).trasz2009-09-076-221/+539
| | | | Reviewed by: rwatson
* Fix double free in setfacl(1). Description from the author:trasz2008-09-061-4/+6
| | | | | | | | | | | | | | 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)
* Add hard sentence breaks.csjp2008-07-061-8/+10
| | | | | Pointed out by: rwatson MFC after: 1 week
* Document default ACLs and how to use them.csjp2008-07-061-0/+16
| | | | MFC after: 1 week
* Implement the -h flag (set an ACL on a symbolic link).mckusick2007-02-261-4/+14
| | | | | | | 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).
* Markup fixes.ru2006-09-171-2/+3
|
* o Fix grammar, format.maxim2006-06-091-3/+3
|
* Document the way to get list of files to process from the stdin.kib2006-06-091-1/+3
| | | | | MFC after: 1 week Approved by: kan (mentor)
* Copy filename read from the stdin into the private buffer. Otherwise,kib2006-06-091-1/+5
| | | | | | | | | 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)
* [mdoc] add missing space before a punctuation type argument.ru2005-12-131-1/+1
|
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-092-4/+4
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-1/+1
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-108-8/+8
|
* Mechanically kill hard sentence breaks.ru2004-07-021-8/+16
|
* style.Makefile(5)obrien2004-06-131-2/+2
|
* Add additional documentation to setfacl(1) regarding the behavior ofrwatson2003-08-071-0/+18
| | | | | | | | | | | 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>
* -v no longer a valid argument to setfacl(1) -- remove from usage().rwatson2003-08-071-1/+1
| | | | | PR: 55318 Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
* When reporting an error internalizing an ACL string, print out therwatson2003-07-181-2/+2
| | | | | | | | ACL that generated the error, rather than the function, which is more user-friendly. Obtained from: TrustedBSD Project Product of: France
* Add "-h" arguments to getfacl and setfacl, which behave in a mannerrwatson2002-12-303-6/+21
| | | | | | | 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
* Consistently use FBSDIDobrien2002-06-306-12/+18
|
* Remove extraneous blank linejedgar2002-02-191-1/+0
|
* Use acl_dup() to duplicate an ACL instead of rolling our ownjedgar2002-02-191-14/+2
|
* Use a more correct method of copying entire ACLs (fixesjedgar2002-02-031-3/+16
| | | | operation under Linux).
* Spelling.ru2001-12-041-1/+1
|
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* Move the code merging ACL_USER and ACL_GROUP objects from underjedgar2001-12-031-22/+33
| | | | | | two nested while loops into a separate function. Obtained from: TrustedBSD Project
* Add defines for access and default ACLs (ACCESS_ACL/DEFAULT_ACL)jedgar2001-12-034-27/+31
| | | | | | to enhance readability. Obtained from: TrustedBSD Project
* style(9) cleanups mostly consisting of:jedgar2001-12-036-87/+85
| | | | | | | | | 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
* Correct example to remove *all* extended ACL entries andjedgar2001-12-031-3/+4
| | | | clarify description.
* o Expand the explaination of the -b option WRT the resultingjedgar2001-12-021-3/+13
| | | | | | | | | 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
* o Correct error message forgotten in the last commit (malloc() -> calloc())jedgar2001-12-021-3/+2
| | | | | | o Fix style nits Submitted by: bde
* Use calloc(3) instead of rolling our own.jedgar2001-12-021-2/+1
|
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-203-2/+4
| | | | MFC After: 1 week
* Correct assignment of the resulting ACL allowing the mask entry tojedgar2001-05-031-1/+1
| | | | | | be properly set. Obtained from: TrustedBSD Project
* o Separate acl_t into internal and external representations asjedgar2001-04-245-98/+168
| | | | | | | | | | | 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
* mdoc(7) police: normalize .Nd.ru2001-04-181-1/+1
|
* setfacl and getfacl no longer need to link against libposix1e, since ittmm2001-04-041-2/+0
| | | | | | | has been integrated into libc. Approved by: rwatson Obtained from: TrustedBSD Project
* mdoc(7) police: fix markup and some spelling.ru2001-03-231-47/+73
|
* Remove extra CFLAGSjedgar2001-03-201-2/+1
| | | | | | Add DPADD Submitted by: bde
* Remove 'NOSHARED=yes' (../Makefile.inc already sets this)jedgar2001-03-191-2/+0
|
* o Missed in addition of setfacl.h in setfacl(1)rwatson2001-03-191-0/+76
|
* o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLsrwatson2001-03-198-0/+983
from files and directories, and setfacl sets ACLs on files and directories. Submitted by: jedgar Obtained from: TrustedBSD Project
OpenPOWER on IntegriCloud