summaryrefslogtreecommitdiff
path: root/lib/libc/posix1e
Commit message (Collapse)AuthorAgeFilesLines
* Drop "All rights reserved" from all my stuff. This includesEdward Tomasz Napierala2020-10-2817-17/+0
| | | | | | | | | | | | Foundation copyrights, approved by emaste@. It does not include files which carry other people's copyrights; if you're one of those people, feel free to make similar change. Reviewed by: emaste, imp, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D26980 Notes: svn path=/head/; revision=367105
* Remove the SYMVER build option.John Baldwin2020-04-301-3/+1
| | | | | | | | | | | | | | This option was added as a transition aide when symbol versioning was first added. It was enabled by default in 2007 and is supported even by the old GPLv2 binutils. Trying to disable it currently fails to build in libc and at this point it isn't worth fixing the build. Reported by: Michael Dexter Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D24637 Notes: svn path=/head/; revision=360511
* Remove some redundant code in _posix1e_acl_strip_npSean Eric Fagan2019-02-191-9/+0
| | | | | | | | | | | | This was discovered through examination -- acl_copy_entry() copies the tag type and permset fields. Reviewed by: trasz, pfg Sponsored by: iXsystems Inc. Differential Revision: https://reviews.freebsd.org/D19240 Notes: svn path=/head/; revision=344294
* Move mac.conf to lib/libc/posix1e/Brad Davis2018-09-182-0/+19
| | | | | | | | | | This leverages CONFS to handle the install of the config file. Approved by: re (blanket, pkgbase), will (mentor) Differential Revision: https://reviews.freebsd.org/D17162 Notes: svn path=/head/; revision=338745
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2528-9/+65
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* acl_to_text(3): start sentences on new linesEnji Cooper2017-05-231-2/+3
| | | | | | | | | Reported by: make manlint MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318709
* acl_create_entry(3): separate .Nm entries with commas in SYNOPSISEnji Cooper2017-05-231-1/+1
| | | | | | | | | Reported by: make manlint MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318708
* posix1e(3): reference using the section (3) when referencing libbsm with .XrEnji Cooper2017-05-231-1/+1
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318704
* Replace dot-dot relative pathing with SRCTOP-relative paths where possibleEnji Cooper2017-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | This reduces build output, need for recalculating paths, and makes it clearer which paths are relative to what areas in the source tree. The change in performance over a locally mounted UFS filesystem was negligible in my testing, but this may more positively impact other filesystems like NFS. LIBC_SRCTOP was left alone so Juniper (and other users) can continue to manipulate lib/libc/Makefile (and other Makefile.inc's under lib/libc) as include Makefiles with custom options. Discussed with: marcel, sjg MFC after: 1 week Reviewed by: emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9207 Notes: svn path=/head/; revision=312451
* libc: spelling fixes.Pedro F. Giffuni2016-04-302-2/+2
| | | | | | | Mostly on comments. Notes: svn path=/head/; revision=298830
* libc: replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-101-1/+1
| | | | | | | | | | | | While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine) Notes: svn path=/head/; revision=297790
* libc: don't build compat functions if building WITHOUT_SYMVEREd Maste2016-03-151-1/+3
| | | | | | | | | | WITHOUT_SYMVER necessarily implies building a system without symver backwards compatability. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296915
* Fix typos in .Xrs.Edward Tomasz Napierala2016-02-292-2/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296196
* Convert casperd(8) daemon to the libcasper.Mariusz Zaborski2016-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | After calling the cap_init(3) function Casper will fork from it's original process, using pdfork(2). Forking from a process has a lot of advantages: 1. We have the same cwd as the original process. 2. The same uid, gid and groups. 3. The same MAC labels. 4. The same descriptor table. 5. The same routing table. 6. The same umask. 7. The same cpuset(1). From now services are also in form of libraries. We also removed libcapsicum at all and converts existing program using Casper to new architecture. Discussed with: pjd, jonathan, ed, drysdale@google.com, emaste Partially reviewed by: drysdale@google.com, bdrewery Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D4277 Notes: svn path=/head/; revision=296047
* Remove names from some prototypesCraig Rodrigues2015-09-202-5/+5
| | | | Notes: svn path=/head/; revision=288027
* Adding missing declarations to eliminate -Wmissing-prototypes warningsCraig Rodrigues2015-09-202-0/+6
| | | | Notes: svn path=/head/; revision=288011
* Make it possible to use acl_create_entry_np(3) to use first entry to anEdward Tomasz Napierala2015-09-081-1/+1
| | | | | | | | | | | empty ACL, and to append an entry to an ACL. Submitted by: sef@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287562
* Expose an interface to determine if an ACE is inherited.Xin LI2015-09-042-1/+3
| | | | | | | | | | Submitted by: sef Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3540 Notes: svn path=/head/; revision=287445
* Fix acl_strip_np(3) breakage introduced in r279962.Edward Tomasz Napierala2015-09-031-9/+11
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287427
* Fix the way acl_init(3) uses posix_memalign(3) - the latter doesn'tEdward Tomasz Napierala2015-09-031-1/+3
| | | | | | | | | | set errno. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287426
* Instead of doing an no-op (|= 0), actually clear the flags inXin LI2015-08-241-1/+1
| | | | | | | | | acl_clear_flags_np. MFC after: 2 weeks Notes: svn path=/head/; revision=287093
* Update Capsicum and Mandatory Access Control manual pagesEdward Tomasz Napierala2015-07-252-24/+2
| | | | | | | | | | | | to no longer claim they are experimental. Reviewed by: rwatson@, wblock@ MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2985 Notes: svn path=/head/; revision=285873
* libc: plug memory leaks in edge cases for the posix1e code.Pedro F. Giffuni2015-03-132-4/+11
| | | | | | | | | | | CID: 1016705 CID: 1016706 CID: 1016707 Differential Revision: https://reviews.freebsd.org/D2023 Notes: svn path=/head/; revision=279962
* Various mdoc fixes and a few EOL whitespace removals.Christian Brueffer2014-12-211-1/+1
| | | | | | | Found with: mandoc -Tlint Notes: svn path=/head/; revision=276006
* Remove acl_size.c; apparently it was never used.Edward Tomasz Napierala2014-11-191-43/+0
| | | | | | | | | | PR: 194398 Submitted by: ngie@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=274722
* Update acl(3) to expand on NFSv4 ACL support.Edward Tomasz Napierala2014-10-301-5/+9
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273854
* Make it clear that ACL flags are NFSv4-only.Edward Tomasz Napierala2014-10-307-14/+14
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=273853
* use .Mt to mark up email addresses consistently (part4)Baptiste Daroussin2014-06-2326-26/+26
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267774
* Correct sorting.Christian Brueffer2014-04-151-1/+1
| | | | Notes: svn path=/head/; revision=264508
* Mention Capsicum.Christian Brueffer2014-04-151-1/+7
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=264507
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-3/+3
| | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* Fix typo.Edward Tomasz Napierala2013-11-121-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258043
* Fix description to actually make sense.Edward Tomasz Napierala2013-11-121-4/+3
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258042
* Mention acl_get_brand_np(3).Edward Tomasz Napierala2013-11-121-1/+6
| | | | | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258041
* 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