summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-086-7/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* First step at adopting FreeBSD to support PSARC/2010/029. This makestrasz2010-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.
* Arrgh, tested wrong source tree _again_. Fix previous commit. Also,trasz2010-09-091-1/+1
| | | | | | this and previous one are MFC candidate. MFC after: 1 month
* Add minor optimization. It's less strict than its kernel counterparttrasz2010-09-091-0/+9
| | | | due to upcoming ACL changes required by the new ZFS.
* Spelling fixes.joel2010-08-022-4/+4
|
* Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and grouptrasz2010-07-063-40/+10
| | | | | | names names starting with a digit. MFC after: 1 month
* Remove comment which didn't match reality for a long time.trasz2010-07-051-3/+0
| | | | Reviewed by: rwatson
* Separate _posix1e_acl_id_to_name() into a separate file, tokientzle2010-06-143-55/+101
| | | | | | break an unnecessary dependency on getpwuid() and getgrgid(). MFC after: 1 month
* Don't use pointer to 64 bit value (id_t) to point to 32 bit value (uid_t).trasz2010-06-051-5/+5
| | | | | | Found with: Coverity Prevent CID: 7466, 7467 MFC after: 2 weeks
* Don't forget to free the string in error case.trasz2010-06-031-0/+1
| | | | | Found with: Coverity Prevent CID: 6585
* _posix1e_acl_sort() never returns anything other than 0; change itstrasz2010-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
* Fix usage of uninitialized variable.trasz2010-06-031-1/+1
| | | | | | Found with: Coverity Prevent CID: 7517 MFC after: 2 weeks
* The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.trasz2010-06-031-2/+1
| | | | | Found with: Coverity Prevent CID: 6192
* The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.trasz2010-06-031-1/+1
| | | | | Found with: Coverity Prevent CID: 6193
* Make acl_get_perm_np(3) work with NFSv4 ACLs.trasz2010-05-232-24/+18
| | | | | Reviewed by: kientzle@ MFC after: 1 week
* Make branding less intrusive - in acl_set(3), in case ACL brandtrasz2010-05-131-0/+3
| | | | | | is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing. MFC after: 1 week
* Make it possible to actually use NFSv4 permission bits with acl_set_perm(3)trasz2010-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
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-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)
* Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.trasz2010-03-281-7/+4
| | | | | PR: amd64/145091 MFC after: 2 weeks
* Switch to our preferred license text.joel2010-03-071-8/+8
| | | | Approved by: jedgar
* Use our standard license text. No more voices in the authors head. :-)joel2010-03-049-72/+72
| | | | Approved by: trasz
* s/APIS/APIs - not part of the original submission.trhodes2010-02-111-2/+2
|
* Correct two typoes.trhodes2010-02-111-1/+1
| | | | Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
* Don't forget to clean up the file copied from the kernel sources.ed2010-01-021-0/+2
| | | | MFC after: 1 week
* Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointedmarkus2009-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
* Don't let the C library depend on <utmp.h>.ed2009-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).
* Fix a memory leak in acl_from_text() in case the conversion succeeded.brueffer2009-11-161-0/+1
| | | | | Submitted by: Jim Wilcoxson <prirun@gmail.com> MFC after: 1 week
* Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)trasz2009-09-012-11/+12
| | | | | | | | | and acl_calc_mask(3) return error instead of crashing when acl passed to them is NULL. Submitted by: markus Reviewed by: rwatson MFC after: 3 days
* Style: Remove trailing whitespace.kientzle2009-08-291-11/+11
|
* Update posix1e-related man pages, especially as relates to MAC, to morerwatson2009-08-127-156/+129
| | | | | | accurately reflect the last ten years of work. Approved by: re (kib)
* Add missing MLINKS for acl_{get,set}_link_fd(3).trasz2009-07-141-0/+2
| | | | Approved by: re (kib)
* Fix acl_set_fd(3) and acl_get_fd(3) for cases where the kernel doesn't knowtrasz2009-06-252-2/+3
| | | | anything about _PC_ACL_NFS4.
* Manual page tweaks.trasz2009-06-251-2/+2
|
* Fix c194955 - somehow I managed all the new files, tripling theirtrasz2009-06-2517-4664/+0
| | | | contents.
* Bump manual page timestamps.trasz2009-06-2518-18/+18
|
* Add NFSv4 ACL support to libc.trasz2009-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@
* Fix off by one error in acl_create_entry(3).trasz2009-05-281-1/+6
| | | | | Reviewed by: rwatson@ MFC after: 2 weeks
* Change license to more bori^Wadul^Wcanonical.trasz2009-05-261-11/+11
| | | | Submitted by: rwatson@
* Improve API documentation.trasz2009-05-235-1/+39
| | | | Reviewed by: rwatson (earlier version)
* Make 'struct acl' larger, as required to support NFSv4 ACLs. Providetrasz2009-05-2211-6/+111
| | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson
* Since audit(4) isn't based on posix1e, remove the commented out audit.h header,brueffer2009-05-191-2/+2
| | | | | | | xref libbsm(3). Submitted by: rwatson MFC after: 3 days
* Fix typo.trasz2009-04-261-1/+1
|
* Replace the non-standard disclaimer with the standard one from /COPYRIGHTimp2008-11-0419-152/+152
| | | | Approved by: jedgar@
* The libc acl_valid(3) function validates the contents of a POSIX.1e ACL.rwatson2008-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
* Add __FBSDID() tags.rwatson2008-03-074-8/+12
| | | | MFC after: 3 days
* Some libc symbol map cleanups.deischen2007-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
* Use C comments since we now preprocess these files with CPP.deischen2007-04-291-1/+3
|
* Move _posix1e_acl_name_to_id out of acl_support.c and intokientzle2007-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
* Revise markup in recently added manpages.ru2006-09-301-3/+3
|
* Following repo-copy of mac_is_present_np.3 to mac_is_present.3, removerwatson2006-07-076-93/+6
| | | | | | | old file, update references, etc. The C function is already named mac_is_present(). Obtained from: TrustedBSD Project
OpenPOWER on IntegriCloud