Searched refs:acl (Results 1 - 25 of 134) sorted by relevance

123456

/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/
H A Dacl.h32 #include_next <sys/acl.h>
34 struct acl;
36 void aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp);
37 int acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries);
/freebsd-10-stable/lib/libc/posix1e/
H A Dacl_valid.c37 #include <sys/acl.h>
57 acl_valid(acl_t acl) argument
61 if (acl == NULL) {
65 if (!_acl_brand_may_be(acl, ACL_BRAND_POSIX)) {
69 _posix1e_acl_sort(acl);
70 error = _posix1e_acl_check(acl);
80 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl) argument
83 if (pathp == NULL || acl == NULL) {
88 if (_posix1e_acl(acl, type))
89 _posix1e_acl_sort(acl);
95 acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl) argument
110 acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) argument
[all...]
H A Dacl_branding.c32 #include <sys/acl.h>
63 _acl_brand(const acl_t acl) argument
66 return (acl->ats_brand);
80 _acl_brand_may_be(const acl_t acl, int brand) argument
83 if (_acl_brand(acl) == ACL_BRAND_UNKNOWN)
86 if (_acl_brand(acl) == brand)
103 _acl_brand_as(acl_t acl, int brand) argument
106 assert(_acl_brand_may_be(acl, brand));
108 acl->ats_brand = brand;
119 _acl_type_not_valid_for_acl(const acl_t acl, acl_type_ argument
141 _acl_brand_from_type(acl_t acl, acl_type_t type) argument
159 acl_get_brand_np(acl_t acl, int *brand_p) argument
[all...]
H A Dacl_delete_entry.c32 #include <sys/acl.h>
72 * from acl.
75 acl_delete_entry(acl_t acl, acl_entry_t entry_d) argument
77 struct acl *acl_int;
81 if (acl == NULL || entry_d == NULL) {
86 acl_int = &acl->ats_acl;
88 if (_entry_brand(entry_d) != _acl_brand(acl)) {
93 if ((acl->ats_acl.acl_cnt < 1) ||
94 (acl->ats_acl.acl_cnt > ACL_MAX_ENTRIES)) {
102 for (i = 0; i < acl
128 acl_delete_entry_np(acl_t acl, int offset) argument
[all...]
H A Dacl_init.c27 * acl_init -- return a fresh acl structure
28 * acl_dup -- duplicate an acl and return the new copy
36 #include <sys/acl.h>
57 acl_t acl; local
68 error = posix_memalign((void *)&acl, 1 << _ACL_T_ALIGNMENT_BITS,
73 bzero(acl, sizeof(struct acl_t_struct));
74 acl->ats_brand = ACL_BRAND_UNKNOWN;
75 acl->ats_acl.acl_maxcnt = ACL_MAX_ENTRIES;
77 return (acl);
81 acl_dup(acl_t acl) argument
[all...]
H A Dacl_set.c37 #include <sys/acl.h>
54 acl_set_file(const char *path_p, acl_type_t type, acl_t acl) argument
57 if (acl == NULL || path_p == NULL) {
62 if (_acl_type_not_valid_for_acl(acl, type)) {
66 if (_posix1e_acl(acl, type))
67 _posix1e_acl_sort(acl);
69 acl->ats_cur_entry = 0;
71 return (__acl_set_file(path_p, type, &acl->ats_acl));
75 acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl) argument
78 if (acl
96 acl_set_fd(int fd, acl_t acl) argument
106 acl_set_fd_np(int fd, acl_t acl, acl_type_t type) argument
[all...]
H A Dacl_support.h40 int _acl_type_not_valid_for_acl(const acl_t acl, acl_type_t type);
41 void _acl_brand_from_type(acl_t acl, acl_type_t type);
42 int _acl_brand(const acl_t acl);
44 int _acl_brand_may_be(const acl_t acl, int brand);
46 void _acl_brand_as(acl_t acl, int brand);
52 int _posix1e_acl_check(acl_t acl);
53 void _posix1e_acl_sort(acl_t acl);
54 int _posix1e_acl(acl_t acl, acl_type_t type);
60 int _posix1e_acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id,
H A Dacl_entry.c32 #include <sys/acl.h>
45 struct acl *acl_int;
80 struct acl *acl_int;
123 acl_get_entry(acl_t acl, int entry_id, acl_entry_t *entry_p) argument
125 struct acl *acl_int;
127 if (acl == NULL) {
131 acl_int = &acl->ats_acl;
135 acl->ats_cur_entry = 0;
138 if (acl->ats_cur_entry >= acl
[all...]
H A Dacl_from_text.c35 #include <sys/acl.h>
194 acl_t acl; local
203 acl = acl_init(3); /* XXX: WTF, 3? */
204 if (acl == NULL) {
223 if (_acl_brand(acl) == ACL_BRAND_UNKNOWN) {
225 _acl_brand_as(acl, ACL_BRAND_NFS4);
227 _acl_brand_as(acl, ACL_BRAND_POSIX);
230 switch (_acl_brand(acl)) {
232 error = _nfs4_acl_entry_from_text(acl, entry);
236 error = _posix1e_acl_entry_from_text(acl, entr
[all...]
H A Dacl_free.c35 #include <sys/acl.h>
/freebsd-10-stable/contrib/unbound/daemon/
H A Dacl_list.c52 struct acl_list* acl = (struct acl_list*)calloc(1, local
54 if(!acl)
56 acl->region = regional_create();
57 if(!acl->region) {
58 acl_list_delete(acl);
61 return acl;
65 acl_list_delete(struct acl_list* acl) argument
67 if(!acl)
69 regional_destroy(acl->region);
70 free(acl);
75 acl_list_insert(struct acl_list* acl, struct sockaddr_storage* addr, socklen_t addrlen, int net, enum acl_access control, int complain_duplicates) argument
93 acl_list_str_cfg(struct acl_list* acl, const char* str, const char* s2, int complain_duplicates) argument
130 read_acl_list(struct acl_list* acl, struct config_file* cfg) argument
142 acl_list_apply_cfg(struct acl_list* acl, struct config_file* cfg) argument
166 acl_list_lookup(struct acl_list* acl, struct sockaddr_storage* addr, socklen_t addrlen) argument
176 acl_list_get_mem(struct acl_list* acl) argument
[all...]
H A Dacl_list.h93 * Create acl structure
99 * Delete acl structure.
100 * @param acl: to delete.
102 void acl_list_delete(struct acl_list* acl);
106 * @param acl: where to store.
110 int acl_list_apply_cfg(struct acl_list* acl, struct config_file* cfg);
114 * @param acl: structure for address storage.
119 enum acl_access acl_list_lookup(struct acl_list* acl,
123 * Get memory used by acl structure.
124 * @param acl
[all...]
/freebsd-10-stable/sys/ufs/ufs/
H A Dacl.h40 int ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td);
41 int ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td);
42 void ufs_sync_acl_from_inode(struct inode *ip, struct acl *acl);
43 void ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip);
/freebsd-10-stable/bin/setfacl/
H A Dmask.c31 #include <sys/acl.h>
46 acl_t acl; local
60 acl = acl_dup(*prev_acl);
61 if (acl == NULL)
72 if (acl_calc_mask(&acl)) {
74 acl_free(acl);
86 while (acl_get_entry(acl, entry_id, &entry) == 1) {
93 acl_free(acl);
105 acl_free(acl);
110 *prev_acl = acl_dup(acl);
[all...]
H A Dsetfacl.h33 #include <sys/acl.h>
39 int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename);
40 int add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, const char *filename);
42 int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename);
H A Dsetfacl.c33 #include <sys/acl.h>
46 #define OP_MERGE_ACL 0x00 /* merge acl's (-mM) */
47 #define OP_REMOVE_DEF 0x01 /* remove default acl's (-k) */
48 #define OP_REMOVE_EXT 0x02 /* remove extended acl's (-b) */
49 #define OP_REMOVE_ACL 0x03 /* remove acl's (-xX) */
50 #define OP_REMOVE_BY_NUMBER 0x04 /* remove acl's (-xX) by acl entry number */
53 /* TAILQ entry for acl operations */
56 acl_t acl; member in struct:sf_entry
103 acl_t acl; local
[all...]
/freebsd-10-stable/crypto/heimdal/lib/krb5/
H A Dacl.c47 free_retv(struct acl_field *acl) argument
49 while(acl != NULL) {
50 if (acl->type == acl_retval) {
51 if (*acl->u.retv)
52 free(*acl->u.retv);
53 *acl->u.retv = NULL;
55 acl = acl->next;
60 acl_free_list(struct acl_field *acl, int retv) argument
64 free_retv(acl);
79 struct acl_field *acl = NULL, *tmp; local
135 acl_match_acl(krb5_context context, struct acl_field *acl, const char *string) argument
209 struct acl_field *acl; local
251 struct acl_field *acl; local
[all...]
/freebsd-10-stable/sys/net80211/
H A Dieee80211_acl.c72 struct acl { struct
73 TAILQ_ENTRY(acl) acl_list;
74 LIST_ENTRY(acl) acl_hash;
81 TAILQ_HEAD(, acl) as_list; /* list of all ACL's */
82 LIST_HEAD(, acl) as_hash[ACL_HASHSIZE];
90 static MALLOC_DEFINE(M_80211_ACL, "acl", "802.11 station acl");
106 ACL_LOCK_INIT(as, "acl");
129 static __inline struct acl *
132 struct acl *ac local
144 _acl_free(struct aclstate *as, struct acl *acl) argument
175 struct acl *acl, *new; local
213 struct acl *acl; local
232 struct acl *acl; local
290 struct acl *acl; local
[all...]
/freebsd-10-stable/sys/kern/
H A Dsubr_acl_posix1e.c48 #include <sys/acl.h>
53 * and is passed via 'uid', 'gid', and 'acl'. Return 0 on success, else an
58 struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused)
100 if ((accmode & VEXEC) && (acl_posix1e_acl_to_mode(acl) &
123 for (i = 0; i < acl->acl_cnt; i++) {
124 switch (acl->acl_entry[i].ae_tag) {
130 if (acl->acl_entry[i].ae_perm & ACL_EXECUTE)
132 if (acl->acl_entry[i].ae_perm & ACL_READ)
134 if (acl
57 vaccess_acl_posix1e(enum vtype type, uid_t file_uid, gid_t file_gid, struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused) argument
486 acl_posix1e_acl_to_mode(struct acl *acl) argument
544 acl_posix1e_check(struct acl *acl) argument
[all...]
/freebsd-10-stable/contrib/libarchive/libarchive/
H A Darchive_disk_acl_freebsd.c43 #include <sys/acl.h>
107 struct archive_entry *entry, acl_t acl, int default_entry_acl_type)
127 if (acl_get_brand_np(acl, &brand) != 0) {
158 s = acl_get_entry(acl, ACL_FIRST_ENTRY, &acl_entry);
215 s = acl_get_entry(acl, ACL_NEXT_ENTRY, &acl_entry);
310 s = acl_get_entry(acl, ACL_NEXT_ENTRY, &acl_entry);
326 acl_t acl; local
367 acl = acl_init(entries);
368 if (acl == (acl_t)NULL) {
376 if (acl_create_entry(&acl,
106 translate_acl(struct archive_read_disk *a, struct archive_entry *entry, acl_t acl, int default_entry_acl_type) argument
567 acl_t acl; local
[all...]
H A Darchive_acl.c52 static int acl_special(struct archive_acl *acl,
54 static struct archive_acl_entry *acl_new_entry(struct archive_acl *acl,
56 static int archive_acl_add_entry_len_l(struct archive_acl *acl,
59 static int archive_acl_text_want_type(struct archive_acl *acl, int flags);
60 static ssize_t archive_acl_text_len(struct archive_acl *acl, int want_type,
131 archive_acl_clear(struct archive_acl *acl) argument
135 while (acl->acl_head != NULL) {
136 ap = acl->acl_head->next;
137 archive_mstring_clean(&acl->acl_head->name);
138 free(acl
169 archive_acl_add_entry(struct archive_acl *acl, int type, int permset, int tag, int id, const char *name) argument
189 archive_acl_add_entry_w_len(struct archive_acl *acl, int type, int permset, int tag, int id, const wchar_t *name, size_t len) argument
209 archive_acl_add_entry_len_l(struct archive_acl *acl, int type, int permset, int tag, int id, const char *name, size_t len, struct archive_string_conv *sc) argument
242 acl_special(struct archive_acl *acl, int type, int permset, int tag) argument
269 acl_new_entry(struct archive_acl *acl, int type, int permset, int tag, int id) argument
369 archive_acl_count(struct archive_acl *acl, int want_type) argument
391 archive_acl_types(struct archive_acl *acl) argument
402 archive_acl_reset(struct archive_acl *acl, int want_type) argument
432 archive_acl_next(struct archive *a, struct archive_acl *acl, int want_type, int *type, int *permset, int *tag, int *id, const char **name) argument
501 archive_acl_text_want_type(struct archive_acl *acl, int flags) argument
533 archive_acl_text_len(struct archive_acl *acl, int want_type, int flags, int wide, struct archive *a, struct archive_string_conv *sc) argument
664 archive_acl_to_text_w(struct archive_acl *acl, ssize_t *text_len, int flags, struct archive *a) argument
895 archive_acl_to_text_l(struct archive_acl *acl, ssize_t *text_len, int flags, struct archive_string_conv *sc) argument
1133 archive_acl_from_text_w(struct archive_acl *acl, const wchar_t *text, int want_type) argument
1605 archive_acl_from_text_l(struct archive_acl *acl, const char *text, int want_type, struct archive_string_conv *sc) argument
[all...]
/freebsd-10-stable/sys/sys/
H A Dacl.h76 #define NFS4_ACL_EXTATTR_NAME "nfs4.acl"
99 * Current "struct acl".
117 struct acl { struct
129 struct acl ats_acl;
158 * Possible valid values for ae_tag field. For explanation, see acl(9).
294 mode_t acl_posix1e_acl_to_mode(struct acl *acl);
296 struct acl *dacl);
297 struct acl *acl_alloc(int flags);
298 void acl_free(struct acl *acl
[all...]
/freebsd-10-stable/contrib/bsnmp/snmp_vacm/
H A Dvacm_snmp.c267 struct vacm_access *acl; local
271 if ((acl = vacm_get_access_rule(&val->var, sub)) == NULL)
276 if ((acl = vacm_get_next_access_rule(&val->var, sub)) == NULL)
278 vacm_append_access_rule_index(&val->var, sub, acl);
282 if ((acl = vacm_get_access_rule(&val->var, sub)) == NULL &&
285 if (acl != NULL && community != COMM_INITIALIZE &&
286 acl->type == StorageType_readOnly)
291 ctx->scratch->int1 = acl->ctx_match;
293 acl->ctx_match = 1;
295 acl
682 vacm_append_access_rule_index(struct asn_oid *oid, uint sub, const struct vacm_access *acl) argument
736 struct vacm_access *acl; local
757 struct vacm_access *acl; local
[all...]
/freebsd-10-stable/bin/getfacl/
H A Dgetfacl.c39 #include <sys/acl.h>
93 acl_t acl; local
98 acl = acl_init(3);
99 if (!acl)
103 if (acl_create_entry(&acl, &entry) == -1)
127 if (acl_create_entry(&acl, &entry) == -1)
151 if (acl_create_entry(&acl, &entry) == -1)
174 return(acl);
182 acl_t acl; local
221 acl
[all...]
/freebsd-10-stable/bin/cp/
H A Dutils.c39 #include <sys/acl.h>
412 acl_t acl; local
438 acl = acl_get_fd_np(source_fd, acl_type);
439 if (acl == NULL) {
440 warn("failed to get acl entries while setting %s", to.p_path);
443 if (acl_is_trivial_np(acl, &trivial)) {
445 acl_free(acl);
449 acl_free(acl);
452 if (acl_set_fd_np(dest_fd, acl, acl_type) < 0) {
453 warn("failed to set acl entrie
467 acl_t acl; local
[all...]

Completed in 153 milliseconds

123456