summaryrefslogtreecommitdiff
path: root/lib/libc/posix1e
Commit message (Collapse)AuthorAgeFilesLines
* MFC r212906:Edward Tomasz Napierala2010-11-011-6/+26
| | | | | | | | | | First step at adopting FreeBSD to support PSARC/2010/029. This makes 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=/stable/8/; revision=214626
* MFC r212376:Edward Tomasz Napierala2010-11-011-0/+9
| | | | | | | | | | | | Add minor optimization. It's less strict than its kernel counterpart due to upcoming ACL changes required by the new ZFS. MFC r212379: Fix previous commit. Notes: svn path=/stable/8/; revision=214624
* MFC r206622,207939,208593,208732,209031: mdoc cleanupUlrich Spörlein2010-08-271-1/+1
| | | | | | | | | | - order prologue by Dd/Dt/Os - fix prologue - remove empty lines and other garbage - uppercase document title Notes: svn path=/stable/8/; revision=211872
* MFC r209736:Edward Tomasz Napierala2010-08-053-40/+10
| | | | | | | | Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and group names names starting with a digit. Notes: svn path=/stable/8/; revision=210867
* MFC r208811:Edward Tomasz Napierala2010-06-111-5/+5
| | | | | | | | | | | Don't use pointer to 64 bit value (id_t) to point to 32 bit value (uid_t). Found with: Coverity Prevent CID: 7466, 7467 Approved by: re (kib) Notes: svn path=/stable/8/; revision=209047
* Fix usage of uninitialized variable.Edward Tomasz Napierala2010-06-111-1/+1
| | | | | | | | | Found with: Coverity Prevent CID: 7517 Approved by: re (kib) Notes: svn path=/stable/8/; revision=209046
* MFC r208437:Edward Tomasz Napierala2010-06-022-24/+18
| | | | | | | | | | Make acl_get_perm_np(3) work with NFSv4 ACLs. Reviewed by: kientzle@ Approved by: re (kib) Notes: svn path=/stable/8/; revision=208756
* MFC r208034:Edward Tomasz Napierala2010-05-201-0/+3
| | | | | | | | Make branding less intrusive - in acl_set(3), in case ACL brand is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing. Notes: svn path=/stable/8/; revision=208359
* MFC r208033:Edward Tomasz Napierala2010-05-201-20/+32
| | | | | | | | | Make it possible to actually use NFSv4 permission bits with acl_set_perm(3) and acl_delete_perm(3). It went undetected, because neither setfacl(1) nor Samba use this routines. D'oh. Notes: svn path=/stable/8/; revision=208358
* MFC r205796:Edward Tomasz Napierala2010-04-131-7/+4
| | | | | | | | | Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs. PR: amd64/145091 Notes: svn path=/stable/8/; revision=206542
* MFC r200992:Markus Brueffer2009-12-301-1/+6
| | | | | | | | | | Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointed to an entry of 'acl', all ACL entries starting with entry_d would be deleted. Approved by: emax (mentor) Notes: svn path=/stable/8/; revision=201260
* MFC: r199317Christian Brueffer2009-11-231-0/+1
| | | | | | | Fix a memory leak in acl_from_text() in case the conversion succeeded. Notes: svn path=/stable/8/; revision=199700
* MFC r196740:Edward Tomasz Napierala2009-09-052-11/+12
| | | | | | | | | | | | | Fix regression introduced with NFSv4 ACL support - make acl_to_text(3) and acl_calc_mask(3) return error instead of crashing when acl passed to them is NULL. Submitted by: markus Reviewed by: rwatson Approved by: re (kib) Notes: svn path=/stable/8/; revision=196862
* Merge r196123 from head to stable/8:Robert Watson2009-08-137-156/+129
| | | | | | | | | | Update posix1e-related man pages, especially as relates to MAC, to more accurately reflect the last ten years of work. Approved by: re (kib) Notes: svn path=/stable/8/; revision=196190
* Add missing MLINKS for acl_{get,set}_link_fd(3).Edward Tomasz Napierala2009-07-141-0/+2
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=195692
* Fix acl_set_fd(3) and acl_get_fd(3) for cases where the kernel doesn't knowEdward Tomasz Napierala2009-06-252-2/+3
| | | | | | | anything about _PC_ACL_NFS4. Notes: svn path=/head/; revision=195004
* Manual page tweaks.Edward Tomasz Napierala2009-06-251-2/+2
| | | | Notes: svn path=/head/; revision=194970
* Fix c194955 - somehow I managed all the new files, tripling theirEdward Tomasz Napierala2009-06-2517-4664/+0
| | | | | | | contents. Notes: svn path=/head/; revision=194957
* Bump manual page timestamps.Edward Tomasz Napierala2009-06-2518-18/+18
| | | | Notes: svn path=/head/; revision=194956
* Add NFSv4 ACL support to libc.Edward Tomasz Napierala2009-06-2539-167/+7759
| | | | | | | | | | | | | | This adds the following functions to the acl(3) API: acl_add_flag_np, acl_clear_flags_np, acl_create_entry_np, acl_delete_entry_np, acl_delete_flag_np, acl_get_extended_np, acl_get_flag_np, acl_get_flagset_np, acl_set_extended_np, acl_set_flagset_np, acl_to_text_np, acl_is_trivial_np, acl_strip_np, acl_get_brand_np. Most of them are similar to what Darwin does. There are no backward-incompatible changes. Approved by: rwatson@ Notes: svn path=/head/; revision=194955
* Fix off by one error in acl_create_entry(3).Edward Tomasz Napierala2009-05-281-1/+6
| | | | | | | | Reviewed by: rwatson@ MFC after: 2 weeks Notes: svn path=/head/; revision=192966
* Change license to more bori^Wadul^Wcanonical.Edward Tomasz Napierala2009-05-261-11/+11
| | | | | | | Submitted by: rwatson@ Notes: svn path=/head/; revision=192804
* Improve API documentation.Edward Tomasz Napierala2009-05-235-1/+39
| | | | | | | Reviewed by: rwatson (earlier version) Notes: svn path=/head/; revision=192638
* Make 'struct acl' larger, as required to support NFSv4 ACLs. ProvideEdward Tomasz Napierala2009-05-2211-6/+111
| | | | | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson Notes: svn path=/head/; revision=192586
* Since audit(4) isn't based on posix1e, remove the commented out audit.h header,Christian Brueffer2009-05-191-2/+2
| | | | | | | | | | xref libbsm(3). Submitted by: rwatson MFC after: 3 days Notes: svn path=/head/; revision=192410
* Fix typo.Edward Tomasz Napierala2009-04-261-1/+1
| | | | Notes: svn path=/head/; revision=191520
* Replace the non-standard disclaimer with the standard one from /COPYRIGHTWarner Losh2008-11-0419-152/+152
| | | | | | | Approved by: jedgar@ Notes: svn path=/head/; revision=184607
* The libc acl_valid(3) function validates the contents of a POSIX.1e ACL.Robert Watson2008-07-131-8/+2
| | | | | | | | | | | | | This change removes the requirement that an ACL contain no ACL_USER entries with a uid the same as those of a file, or ACL_GROUP entries with a gid the same as those of a file. This requirement is not in the specification, and not enforced by the kernel's ACL implementation. Reported by: Iustin Pop <iusty at k1024 dot org> MFC after: 1 week Notes: svn path=/head/; revision=180493
* Add __FBSDID() tags.Robert Watson2008-03-074-8/+12
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=176901
* Some libc symbol map cleanups.Daniel Eischen2007-05-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | net: endhostdnsent is named _endhostdnsent and is private to netdb family of functions. posix1e: acl_size.c has been never compiled in, so there's no "acl_size". rpc: "getnetid" is a static function. stdtime: "gtime" is #ifdef'ed out in the source. some symbols are specific only to some architectures, e.g., ___tls_get_addr is only defined on i386. __htonl, __htons, __ntohl and __ntohs are no longer functions, they are now (internal) defines in <machine/endian.h>. Submitted by: ru Notes: svn path=/head/; revision=170154
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-1/+3
| | | | Notes: svn path=/head/; revision=169092
* Move _posix1e_acl_name_to_id out of acl_support.c and intoTim Kientzle2007-02-263-55/+52
| | | | | | | | | | | | acl_from_text.c. Since acl_from_text.c is the only place it is used, we can now make this internal utility function "static." As a bonus, acl_set_fd() no longer pulls in getpwuid() for no reason. MFC after: 7 days Notes: svn path=/head/; revision=167006
* Revise markup in recently added manpages.Ruslan Ermilov2006-09-301-3/+3
| | | | Notes: svn path=/head/; revision=162841
* Following repo-copy of mac_is_present_np.3 to mac_is_present.3, removeRobert Watson2006-07-076-93/+6
| | | | | | | | | | old file, update references, etc. The C function is already named mac_is_present(). Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=160154
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+2
| | | | Notes: svn path=/head/; revision=156613
* Add symbol maps and initial symbol version definitions to libc.Daniel Eischen2006-03-131-0/+68
| | | | | | | Reviewed by: davidxu Notes: svn path=/head/; revision=156608
* There's no longer^Wyet <sys/capability.h>.Ruslan Ermilov2005-11-231-1/+1
| | | | Notes: svn path=/head/; revision=152718
* -mdoc sweep.Ruslan Ermilov2005-11-171-1/+1
| | | | Notes: svn path=/head/; revision=152551
* Include a couple of headers to ensure consistency between the prototype andStefan Farfeleder2005-09-121-0/+1
| | | | | | | the function definition. Notes: svn path=/head/; revision=150065
* Fix all the spelling mistakes I could find in the man pages for wordsGiorgos Keramidas2005-07-313-4/+4
| | | | | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these. Notes: svn path=/head/; revision=148580
* Minor grammar fixXin LI2005-07-031-1/+1
| | | | | | | | Submitted by: Wojciech A. Koszek [dunstan at freebsd czest pl] Approved by: re (hrs) Notes: svn path=/head/; revision=147750
* Missed rwatson's redundancyWarner Losh2005-06-031-2/+0
| | | | Notes: svn path=/head/; revision=146937
* Minor white space tweak.Robert Watson2005-01-231-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=140664
* Sort sections.Ruslan Ermilov2005-01-202-10/+10
| | | | Notes: svn path=/head/; revision=140505
* Fixed markup bug.Ruslan Ermilov2005-01-151-10/+22
| | | | Notes: svn path=/head/; revision=140288
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-111-1/+2
| | | | Notes: svn path=/head/; revision=140081
* -Add a note that currently two syntax styles for label element declarationChristian S.J. Peron2004-11-181-3/+16
| | | | | | | | | | | | is supported. -Document the new more preferred syntax -Add examples for the new syntax -Add a note that the old syntax will be deprecated in the future. Reviewed by: rwatson Notes: svn path=/head/; revision=137865
* Fix the NAME section making whatis(1) happy in particular.Ruslan Ermilov2004-07-051-1/+1
| | | | Notes: svn path=/head/; revision=131635
* Eliminate double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131539
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-0215-43/+87
| | | | Notes: svn path=/head/; revision=131504