summaryrefslogtreecommitdiff
path: root/lib/libc/posix1e
Commit message (Collapse)AuthorAgeFilesLines
* MFC r318704,r318708,r318709:Enji Cooper2017-07-183-4/+5
| | | | | | | | | | | | | | | | | r318704: posix1e(3): reference using the section (3) when referencing libbsm with .Xr r318708: acl_create_entry(3): separate .Nm entries with commas in SYNOPSIS r318709: acl_to_text(3): start sentences on new lines Notes: svn path=/stable/10/; revision=321149
* MFC r297790:Enji Cooper2016-12-031-1/+1
| | | | | | | | | | | | | | r297790 (by pfg): libc: replace 0 with NULL for pointers. While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Notes: svn path=/stable/10/; revision=309485
* MFC r289195:Enji Cooper2015-11-152-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/stable/10/; revision=290893
* MFC r287093:Xin LI2015-09-081-1/+1
| | | | | | | | | | Instead of doing an no-op (|= 0), actually clear the flags in acl_clear_flags_np. Reported by: Pascal Drecker <pascal freebsd drecker com> Notes: svn path=/stable/10/; revision=287547
* MFC r285873:Edward Tomasz Napierala2015-08-022-24/+2
| | | | | | | | | | Update Capsicum and Mandatory Access Control manual pages to no longer claim they are experimental. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=286189
* MFC r274722:Edward Tomasz Napierala2015-01-071-43/+0
| | | | | | | | | | | Remove acl_size.c; apparently it was never used. PR: 194398 Submitted by: ngie@ Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=276782
* MFC r273854:Edward Tomasz Napierala2014-11-291-5/+9
| | | | | | | | | Update acl(3) to expand on NFSv4 ACL support. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=275254
* MFC r273853:Edward Tomasz Napierala2014-11-297-14/+14
| | | | | | | | | Make it clear that ACL flags are NFSv4-only. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=275253
* MFC: r264507Christian Brueffer2014-04-231-1/+7
| | | | | | | Mention Capsicum. Notes: svn path=/stable/10/; revision=264818
* MFC r258043:Edward Tomasz Napierala2013-12-031-1/+1
| | | | | | | | | | Fix typo. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=258880
* MFC r258042:Edward Tomasz Napierala2013-12-031-4/+3
| | | | | | | | | | Fix description to actually make sense. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=258877
* MFC r258041:Edward Tomasz Napierala2013-12-031-1/+6
| | | | | | | | | | Mention acl_get_brand_np(3). Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/10/; revision=258875
* libc: Make various internal file descriptors from fopen() close-on-exec.Jilles Tjoelker2013-08-231-1/+1
| | | | Notes: svn path=/head/; revision=254700
* Fix several typosEitan Adler2013-05-121-1/+1
| | | | | | | | | PR: kern/176054 Submitted by: Christoph Mallon <christoph.mallon@gmx.de> MFC after: 3 days Notes: svn path=/head/; revision=250576
* Minor mdoc nits.Joel Dahl2012-05-131-1/+1
| | | | Notes: svn path=/head/; revision=235400
* General mdoc(7) and typo fixes.Glen Barber2012-05-111-1/+1
| | | | | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235286
* mandoc complains loudly when <TAB>s are misused in columnated lists. FixJoel Dahl2012-03-295-33/+33
| | | | | | | | this syntax violation and while I'm here also convert <TAB> to Ta and adjust quotation marks in order to prevent this problem in the future. Notes: svn path=/head/; revision=233665
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-292-2/+2
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-1/+0
| | | | Notes: svn path=/head/; revision=233462
* Make it possible to use permission sets (full_set, modify_set, read_setEdward Tomasz Napierala2011-04-091-1/+5
| | | | | | | | | | | and write_set) with setfacl(1). PR: kern/154113 Submitted by: Shawn Webb <lattera at gmail dot com> (earlier version) MFC after: 1 month Notes: svn path=/head/; revision=220465
* Move the code around so that libc behaviour does not depend on a variableEdward Tomasz Napierala2011-03-221-8/+4
| | | | | | | that was supposed to be kernel-only. There should be no functional changes. Notes: svn path=/head/; revision=219878
* Make acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (threeEdward Tomasz Napierala2011-03-041-1/+1
| | | | | | | | | | | entries instead of six). This makes "setfacl -b" do the right thing for ACLs on ZFS. UFS recognizes both kinds of trivial ACLs; no change there. MFC after: 2 months Notes: svn path=/head/; revision=219268
* Bump manual page date.Edward Tomasz Napierala2010-12-131-1/+1
| | | | Notes: svn path=/head/; revision=216416
* After PSARC/2010/029, "canonical six" no longer exists.Edward Tomasz Napierala2010-12-131-1/+3
| | | | Notes: svn path=/head/; revision=216415
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-086-7/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* First step at adopting FreeBSD to support PSARC/2010/029. This makesEdward Tomasz Napierala2010-09-201-6/+26
| | | | | | | | | acl_is_trivial_np(3) properly recognize the new trivial ACLs. From the user point of view, that means "ls -l" no longer shows plus signs for all the files when running ZFS v28. Notes: svn path=/head/; revision=212906
* Arrgh, tested wrong source tree _again_. Fix previous commit. Also,Edward Tomasz Napierala2010-09-091-1/+1
| | | | | | | | | this and previous one are MFC candidate. MFC after: 1 month Notes: svn path=/head/; revision=212379
* Add minor optimization. It's less strict than its kernel counterpartEdward Tomasz Napierala2010-09-091-0/+9
| | | | | | | due to upcoming ACL changes required by the new ZFS. Notes: svn path=/head/; revision=212376
* Spelling fixes.Joel Dahl2010-08-022-4/+4
| | | | Notes: svn path=/head/; revision=210772
* Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and groupEdward Tomasz Napierala2010-07-063-40/+10
| | | | | | | | | names names starting with a digit. MFC after: 1 month Notes: svn path=/head/; revision=209736
* Remove comment which didn't match reality for a long time.Edward Tomasz Napierala2010-07-051-3/+0
| | | | | | | Reviewed by: rwatson Notes: svn path=/head/; revision=209712
* Separate _posix1e_acl_id_to_name() into a separate file, toTim Kientzle2010-06-143-55/+101
| | | | | | | | | break an unnecessary dependency on getpwuid() and getgrgid(). MFC after: 1 month Notes: svn path=/head/; revision=209147
* Don't use pointer to 64 bit value (id_t) to point to 32 bit value (uid_t).Edward Tomasz Napierala2010-06-051-5/+5
| | | | | | | | | Found with: Coverity Prevent CID: 7466, 7467 MFC after: 2 weeks Notes: svn path=/head/; revision=208811
* Don't forget to free the string in error case.Edward Tomasz Napierala2010-06-031-0/+1
| | | | | | | | Found with: Coverity Prevent CID: 6585 Notes: svn path=/head/; revision=208786
* _posix1e_acl_sort() never returns anything other than 0; change itsEdward Tomasz Napierala2010-06-034-55/+15
| | | | | | | | | | | return type to void and update callers. This simplifies code and fixes one place where the returned value was not actually checked. Found with: Coverity Prevent CID: 4791 Notes: svn path=/head/; revision=208785
* Fix usage of uninitialized variable.Edward Tomasz Napierala2010-06-031-1/+1
| | | | | | | | | Found with: Coverity Prevent CID: 7517 MFC after: 2 weeks Notes: svn path=/head/; revision=208784
* The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.Edward Tomasz Napierala2010-06-031-2/+1
| | | | | | | | Found with: Coverity Prevent CID: 6192 Notes: svn path=/head/; revision=208783
* The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.Edward Tomasz Napierala2010-06-031-1/+1
| | | | | | | | Found with: Coverity Prevent CID: 6193 Notes: svn path=/head/; revision=208782
* Make acl_get_perm_np(3) work with NFSv4 ACLs.Edward Tomasz Napierala2010-05-232-24/+18
| | | | | | | | Reviewed by: kientzle@ MFC after: 1 week Notes: svn path=/head/; revision=208437
* Make branding less intrusive - in acl_set(3), in case ACL brandEdward Tomasz Napierala2010-05-131-0/+3
| | | | | | | | | is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing. MFC after: 1 week Notes: svn path=/head/; revision=208034
* Make it possible to actually use NFSv4 permission bits with acl_set_perm(3)Edward Tomasz Napierala2010-05-131-20/+32
| | | | | | | | | | and acl_delete_perm(3). It went undetected, because neither setfacl(1) nor Samba use this routines. D'oh. MFC after: 1 week Notes: svn path=/head/; revision=208033
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-141-1/+1
| | | | | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors) Notes: svn path=/head/; revision=206622
* Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.Edward Tomasz Napierala2010-03-281-7/+4
| | | | | | | | PR: amd64/145091 MFC after: 2 weeks Notes: svn path=/head/; revision=205796
* Switch to our preferred license text.Joel Dahl2010-03-071-8/+8
| | | | | | | Approved by: jedgar Notes: svn path=/head/; revision=204819
* Use our standard license text. No more voices in the authors head. :-)Joel Dahl2010-03-049-72/+72
| | | | | | | Approved by: trasz Notes: svn path=/head/; revision=204725
* s/APIS/APIs - not part of the original submission.Tom Rhodes2010-02-111-2/+2
| | | | Notes: svn path=/head/; revision=203787
* Correct two typoes.Tom Rhodes2010-02-111-1/+1
| | | | | | | Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> Notes: svn path=/head/; revision=203778
* Don't forget to clean up the file copied from the kernel sources.Ed Schouten2010-01-021-0/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=201402
* Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointedMarkus Brueffer2009-12-251-1/+6
| | | | | | | | | | | to an entry of 'acl', all ACL entries starting with entry_d would be deleted. Reviewed by: trasz Approved by: emax (mentor) MFC after: 3 days Notes: svn path=/head/; revision=200992
* Don't let the C library depend on <utmp.h>.Ed Schouten2009-12-051-4/+3
| | | | | | | | | The maximum length of a username has nothing to do with the size of the username in the utmp files. Use MAXLOGNAME, which is defined as 17 (UT_USERSIZE + 1). Notes: svn path=/head/; revision=200142