summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_from_text.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and grouptrasz2010-07-061-5/+3
| | | | | | 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
* 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
* Add NFSv4 ACL support to libc.trasz2009-06-251-98/+126
| | | | | | | | | | | 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@
* Move _posix1e_acl_name_to_id out of acl_support.c and intokientzle2007-02-261-1/+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
* Fix the style of the SCM ID's.obrien2002-03-221-2/+3
| | | | I believe have made all of libc .c's as consistent as possible.
* o style(9) and consistency fixes:jedgar2002-02-211-5/+5
| | | | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); Reviewed by: rwatson Obtained from: TrustedBSD Project
* static'ize and declare functionsjedgar2002-02-211-1/+5
| | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project
* o Separate acl_t into internal and external representations asjedgar2001-04-241-7/+7
| | | | | | | | | | | 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
* Prepare for the inclusion of libposix1e into libc: retire the oldtmm2001-04-041-0/+2
| | | | | | | | | | Makefile, add Makefile.inc needed for libc build; add #include "namespace.h"/#include "un-namespace.h" pairs around the includes of sys/acl.h and sys/capability.h, and an additional underscore in front of the functions that will be overridden in libc_r. Approved by: rwatson Obtained from: TrustedBSD Project
* o Update copyright dates.rwatson2001-03-131-4/+5
| | | | | | | | o Rename internal library functions so that they are prefixed with _posix1e or _POSIX1E, removing them from the application namespace (and potential conflict with other ACL functions elsewhere in the system). Obtained from: TrustedBSD Project
* o When returning NULL, return (NULL) instead of return (0).rwatson2001-01-171-3/+3
| | | | | Submitted by: jedgar Obtained from: TrustedBSD Project
* o acl_from_text.c:rwatson2001-01-091-4/+1
| | | | | | | | | | | | - errno is already set to ENOMEM (as appropriate) when asprintf(), strdup(), or acl_init() fails o acl_to_text.c: - the return value of the initial strdup() is not checked - errno is already set to ENOMEM (as appropriate) when asprintf and acl_init() fails - let the the default: case use 'goto error_label' for consistency Submitted by: jedgar
* o Minor whitespace, comment cleanupsrwatson2000-09-221-27/+14
| | | | | | | o Removal of unneeded enum o Removal of commented out debugging printf()'s. Obtained from: TrustedBSD Project
* libposix1e provides userland library calls for the POSIX.1e securityrwatson2000-01-151-0/+246
interface. This commit introduces the library, as well as a modest subset of the ACL calls, with some modifications to support multiple ACL semantics. Reviewed by: eivind
OpenPOWER on IntegriCloud