aboutsummaryrefslogtreecommitdiff
path: root/bin/setfacl
Commit message (Collapse)AuthorAgeFilesLines
* Fix double free in setfacl(1). Description from the author:Edward Tomasz Napierala2008-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) Notes: svn path=/head/; revision=182813
* Add hard sentence breaks.Christian S.J. Peron2008-07-061-8/+10
| | | | | | | | Pointed out by: rwatson MFC after: 1 week Notes: svn path=/head/; revision=180334
* Document default ACLs and how to use them.Christian S.J. Peron2008-07-061-0/+16
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=180330
* Implement the -h flag (set an ACL on a symbolic link).Kirk 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). Notes: svn path=/head/; revision=167000
* Markup fixes.Ruslan Ermilov2006-09-171-2/+3
| | | | Notes: svn path=/head/; revision=162379
* o Fix grammar, format.Maxim Konovalov2006-06-091-3/+3
| | | | Notes: svn path=/head/; revision=159465
* Document the way to get list of files to process from the stdin.Konstantin Belousov2006-06-091-1/+3
| | | | | | | | MFC after: 1 week Approved by: kan (mentor) Notes: svn path=/head/; revision=159464
* Copy filename read from the stdin into the private buffer. Otherwise,Konstantin Belousov2006-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) Notes: svn path=/head/; revision=159463
* [mdoc] add missing space before a punctuation type argument.Ruslan Ermilov2005-12-131-1/+1
| | | | Notes: svn path=/head/; revision=153380
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-092-4/+4
| | | | Notes: svn path=/head/; revision=141578
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-1/+1
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-108-8/+8
| | | | Notes: svn path=/head/; revision=139969
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-8/+16
| | | | Notes: svn path=/head/; revision=131484
* style.Makefile(5)David E. O'Brien2004-06-131-2/+2
| | | | Notes: svn path=/head/; revision=130426
* Add additional documentation to setfacl(1) regarding the behavior ofRobert Watson2003-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> Notes: svn path=/head/; revision=118603
* -v no longer a valid argument to setfacl(1) -- remove from usage().Robert Watson2003-08-071-1/+1
| | | | | | | | PR: 55318 Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl> Notes: svn path=/head/; revision=118602
* When reporting an error internalizing an ACL string, print out theRobert Watson2003-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 Notes: svn path=/head/; revision=117734
* Add "-h" arguments to getfacl and setfacl, which behave in a mannerRobert Watson2002-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 Notes: svn path=/head/; revision=108450
* Consistently use FBSDIDDavid E. O'Brien2002-06-306-12/+18
| | | | Notes: svn path=/head/; revision=99110
* Remove extraneous blank lineChris D. Faulhaber2002-02-191-1/+0
| | | | Notes: svn path=/head/; revision=90888
* Use acl_dup() to duplicate an ACL instead of rolling our ownChris D. Faulhaber2002-02-191-14/+2
| | | | Notes: svn path=/head/; revision=90887
* Use a more correct method of copying entire ACLs (fixesChris D. Faulhaber2002-02-031-3/+16
| | | | | | | operation under Linux). Notes: svn path=/head/; revision=90127
* Spelling.Ruslan Ermilov2001-12-041-1/+1
| | | | Notes: svn path=/head/; revision=87354
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-2/+0
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* Move the code merging ACL_USER and ACL_GROUP objects from underChris D. Faulhaber2001-12-031-22/+33
| | | | | | | | | two nested while loops into a separate function. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=87260
* Add defines for access and default ACLs (ACCESS_ACL/DEFAULT_ACL)Chris D. Faulhaber2001-12-034-27/+31
| | | | | | | | | to enhance readability. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=87259
* style(9) cleanups mostly consisting of:Chris D. Faulhaber2001-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 Notes: svn path=/head/; revision=87254
* Correct example to remove *all* extended ACL entries andChris D. Faulhaber2001-12-031-3/+4
| | | | | | | clarify description. Notes: svn path=/head/; revision=87253
* o Expand the explaination of the -b option WRT the resultingChris D. Faulhaber2001-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 Notes: svn path=/head/; revision=87226
* o Correct error message forgotten in the last commit (malloc() -> calloc())Chris D. Faulhaber2001-12-021-3/+2
| | | | | | | | | o Fix style nits Submitted by: bde Notes: svn path=/head/; revision=87224
* Use calloc(3) instead of rolling our own.Chris D. Faulhaber2001-12-021-2/+1
| | | | Notes: svn path=/head/; revision=87181
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* WARNS= -> WARNS?=Dima Dorfman2001-06-221-1/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78624
* Silence WARNS=2 and BDECFLAGS on alpha and i386Kris Kennaway2001-05-203-2/+4
| | | | | | | MFC After: 1 week Notes: svn path=/head/; revision=76881
* Correct assignment of the resulting ACL allowing the mask entry toChris D. Faulhaber2001-05-031-1/+1
| | | | | | | | | be properly set. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=76233
* o Separate acl_t into internal and external representations asChris D. Faulhaber2001-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 Notes: svn path=/head/; revision=75928
* mdoc(7) police: normalize .Nd.Ruslan Ermilov2001-04-181-1/+1
| | | | Notes: svn path=/head/; revision=75670
* setfacl and getfacl no longer need to link against libposix1e, since itThomas Moestl2001-04-041-2/+0
| | | | | | | | | | has been integrated into libc. Approved by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75189
* mdoc(7) police: fix markup and some spelling.Ruslan Ermilov2001-03-231-47/+73
| | | | Notes: svn path=/head/; revision=74676
* Remove extra CFLAGSChris D. Faulhaber2001-03-201-2/+1
| | | | | | | | | Add DPADD Submitted by: bde Notes: svn path=/head/; revision=74506
* Remove 'NOSHARED=yes' (../Makefile.inc already sets this)Chris D. Faulhaber2001-03-191-2/+0
| | | | Notes: svn path=/head/; revision=74489
* o Missed in addition of setfacl.h in setfacl(1)Robert Watson2001-03-191-0/+76
| | | | Notes: svn path=/head/; revision=74468
* o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLsRobert Watson2001-03-198-0/+983
from files and directories, and setfacl sets ACLs on files and directories. Submitted by: jedgar Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74465