aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/posix1e/acl_to_text.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-07-251-1/+1
| | | | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix (cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
* 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
* Don't let the C library depend on <utmp.h>.Ed Schouten2009-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). Notes: svn path=/head/; revision=200142
* Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)Edward Tomasz Napierala2009-09-011-5/+5
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=196740
* Add NFSv4 ACL support to libc.Edward Tomasz Napierala2009-06-251-4/+29
| | | | | | | | | | | | | | 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
* Print group name in getfacl output when calculating an effectiveRobert Watson2003-07-241-2/+3
| | | | | | | | | permission set based on a more restrictive mask. Submitted by: Glen Gibb <grg@ridley.unimelb.edu.au> Notes: svn path=/head/; revision=117982
* 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
* o style(9) and consistency fixes:Chris D. Faulhaber2002-02-211-1/+1
| | | | | | | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=91034
* o return EINVAL if acl_to_text() have been sent a NULL acl. ↵Chris D. Faulhaber2002-01-261-1/+6
| | | | | | | | | o update copyright dates. Reviewed by: rwatson Notes: svn path=/head/; revision=89831
* o Separate acl_t into internal and external representations asChris D. Faulhaber2001-04-241-16/+19
| | | | | | | | | | | | | | 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-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 Notes: svn path=/head/; revision=75185
* o Update copyright dates.Robert Watson2001-03-131-26/+29
| | | | | | | | | | | 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
* o When returning NULL, return (NULL) instead of return (0).Robert Watson2001-01-171-2/+2
| | | | | | | | Submitted by: jedgar Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=71142
* o acl_from_text.c:Robert Watson2001-01-091-20/+9
| | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=70841
* Minor fixes to library interface to improve POSIX.1e compliance. ThisRobert Watson2000-01-261-13/+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
* libposix1e provides userland library calls for the POSIX.1e securityRobert Watson2000-01-151-0/+244
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