acl_support.h (56055) | acl_support.h (56625) |
---|---|
1/*- 2 * Copyright (c) 1999 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libc/posix1e/acl_support.h 56055 2000-01-15 19:44:27Z rwatson $ | 26 * $FreeBSD: head/lib/libc/posix1e/acl_support.h 56625 2000-01-26 04:19:38Z rwatson $ |
27 */ 28/* 29 * Support functionality for the POSIX.1e ACL interface 30 * These calls are intended only to be called within the library. 31 */ 32#ifndef _ACL_SUPPORT_H 33#define _ACL_SUPPORT_H 34 35#define ACL_STRING_PERM_MAXSIZE 3 /* read, write, exec */ 36 37int acl_check(struct acl *acl); 38int acl_sort(acl_t acl); | 27 */ 28/* 29 * Support functionality for the POSIX.1e ACL interface 30 * These calls are intended only to be called within the library. 31 */ 32#ifndef _ACL_SUPPORT_H 33#define _ACL_SUPPORT_H 34 35#define ACL_STRING_PERM_MAXSIZE 3 /* read, write, exec */ 36 37int acl_check(struct acl *acl); 38int acl_sort(acl_t acl); |
39int acl_posix1e(acl_t acl); | 39int acl_posix1e(acl_t acl, acl_type_t type); |
40int acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf); 41int acl_name_to_id(acl_tag_t tag, char *name, uid_t *id); 42int acl_perm_to_string(acl_perm_t perm, ssize_t buf_len, char *buf); 43int acl_string_to_perm(char *string, acl_perm_t *perm); 44int acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id, acl_perm_t perm); 45 46#endif | 40int acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf); 41int acl_name_to_id(acl_tag_t tag, char *name, uid_t *id); 42int acl_perm_to_string(acl_perm_t perm, ssize_t buf_len, char *buf); 43int acl_string_to_perm(char *string, acl_perm_t *perm); 44int acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id, acl_perm_t perm); 45 46#endif |