summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_set.c
Commit message (Collapse)AuthorAgeFilesLines
* _posix1e_acl_sort() never returns anything other than 0; change itstrasz2010-06-031-24/+6
| | | | | | | | 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 acl_set_fd(3) and acl_get_fd(3) for cases where the kernel doesn't knowtrasz2009-06-251-1/+1
| | | | anything about _PC_ACL_NFS4.
* Add NFSv4 ACL support to libc.trasz2009-06-251-10/+79
| | | | | | | | | | | 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@
* Make 'struct acl' larger, as required to support NFSv4 ACLs. Providetrasz2009-05-221-0/+3
| | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson
* Update libc POSIX.1e code and documentation to reflect:rwatson2002-12-291-1/+25
| | | | | | | | | | - Updated copyrights, modified dates - Remove "BUGS" entry indicating that ACLs are unimplemented - Implement acl_*_link() library wrapper variants for get, set, delete, aclvalid. - Document acl_*_link() calls. Obtained from: TrustedBSD Project
* 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-9/+9
| | | | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); Reviewed by: rwatson Obtained from: TrustedBSD Project
* Add more argument checkingjedgar2002-02-211-0/+4
| | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project
* o Separate acl_t into internal and external representations asjedgar2001-04-241-4/+10
| | | | | | | | | | | 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
* Correct a bogus cast in acl_get_qualifier() causing invalidjedgar2001-04-151-1/+1
| | | | | | ID's to be stored in the ACL. Obtained from: TrustedBSD Project
* Prepare for the inclusion of libposix1e into libc: retire the oldtmm2001-04-041-2/+4
| | | | | | | | | | 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
* Add the following ACL editing functions:jedgar2001-03-221-0/+74
| | | | | | | | | | acl_add_perm, acl_clear_perms, acl_copy_entry, acl_create_entry, acl_delete_perm, acl_get_permset, acl_get_qualifier, acl_get_tag_type, acl_set_permset, acl_set_qualifier, acl_set_tag_type This brings us within 4 functions of a full ACL editing library. Reviewed by: rwatson
* o Update copyright dates.rwatson2001-03-131-7/+7
| | | | | | | | 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
* Minor fixes to library interface to improve POSIX.1e compliance. Thisrwatson2000-01-261-3/+16
| | | | | | | | | | adds _np to a couple of function prototypes that provided more broad/useful interfaces than POSIX.1e interfaces included. Also, move from using a heuristic to identify POSIX.1e-semantic ACLs to using different ACL types for non-POSIX.1e ACLs. This should clean up the existing fuzzy logic that determined when acl_sort() should be applied before kernel submission.
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls torwatson2000-01-191-2/+2
| | | | | | | | | prettier (?) names, adding some const's around here, et al. This is commit 4 out of 3, updating the userland library to reflect kernel interface changes. Reviewed by: bde
* libposix1e provides userland library calls for the POSIX.1e securityrwatson2000-01-151-0/+75
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