From bca585a108d2bd5fc957868c934f851e28cc1fdc Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 26 Jan 2000 04:19:38 +0000 Subject: Minor fixes to library interface to improve POSIX.1e compliance. This 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. --- lib/libc/posix1e/acl_init.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/libc/posix1e/acl_init.c') diff --git a/lib/libc/posix1e/acl_init.c b/lib/libc/posix1e/acl_init.c index a082ea8..c2fa43b 100644 --- a/lib/libc/posix1e/acl_init.c +++ b/lib/libc/posix1e/acl_init.c @@ -27,6 +27,7 @@ */ /* * acl_init -- return a fresh acl structure + * acl_dup -- duplicate an acl and return the new copy */ #include @@ -51,3 +52,16 @@ acl_init(int count) return (acl); } +acl_t +acl_dup(acl_t acl) +{ + struct acl *acl_new; + + acl_new = acl_init(ACL_MAX_ENTRIES); + if (!acl_new) + return(NULL); + + *acl_new = *acl; + + return(acl_new); +} -- cgit v1.1