summaryrefslogtreecommitdiff
path: root/lib/libc/posix1e/acl_valid.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | 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
* _posix1e_acl_sort() never returns anything other than 0; change itsEdward Tomasz Napierala2010-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 Notes: svn path=/head/; revision=208785
* Add NFSv4 ACL support to libc.Edward Tomasz Napierala2009-06-251-0/+4
| | | | | | | | | | | | | | 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
* Make 'struct acl' larger, as required to support NFSv4 ACLs. ProvideEdward Tomasz Napierala2009-05-221-1/+3
| | | | | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson Notes: svn path=/head/; revision=192586
* Update libc POSIX.1e code and documentation to reflect:Robert Watson2002-12-291-2/+22
| | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=108410
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+3
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Add more argument checkingChris D. Faulhaber2002-02-211-0/+13
| | | | | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=91033
* o Separate acl_t into internal and external representations asChris D. Faulhaber2001-04-241-2/+5
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=75928
* Prepare for the inclusion of libposix1e into libc: retire the oldThomas Moestl2001-04-041-1/+3
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=75185
* o Update copyright dates.Robert Watson2001-03-131-9/+9
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=74191
* Introduce ACL man pages en masse for library calls, and general introduction.Robert Watson2000-01-281-6/+5
| | | | | | | | | | Introduce ACL man pages en masse for library calls, and general introduction. Also, fix acl_valid.c non-portable calls to include _np in their names, making them standard-happy as well as consistent with acl.h Notes: svn path=/head/; revision=56760
* Minor fixes to library interface to improve POSIX.1e compliance. ThisRobert Watson2000-01-261-2/+2
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=56625
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls toRobert Watson2000-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 Notes: svn path=/head/; revision=56274
* libposix1e provides userland library calls for the POSIX.1e securityRobert Watson2000-01-151-0/+98
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 Notes: svn path=/head/; revision=56055