Home
last modified time | relevance | path

Searched refs:acl (Results 1 – 25 of 44) sorted by relevance

12

/dragonfly/sys/netproto/802_11/wlan_acl/
HDieee80211_acl.c74 struct acl { struct
75 TAILQ_ENTRY(acl) acl_list;
76 LIST_ENTRY(acl) acl_hash;
83 TAILQ_HEAD(, acl) as_list; /* list of all ACL's */
84 LIST_HEAD(, acl) as_hash[ACL_HASHSIZE];
136 static __inline struct acl *
139 struct acl *acl; in _find_acl() local
143 LIST_FOREACH(acl, &as->as_hash[hash], acl_hash) { in _find_acl()
144 if (IEEE80211_ADDR_EQ(acl->acl_macaddr, macaddr)) in _find_acl()
145 return acl; in _find_acl()
[all …]
/dragonfly/contrib/libarchive/libarchive/
HDarchive_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) in archive_acl_clear() argument
135 while (acl->acl_head != NULL) { in archive_acl_clear()
136 ap = acl->acl_head->next; in archive_acl_clear()
137 archive_mstring_clean(&acl->acl_head->name); in archive_acl_clear()
138 free(acl->acl_head); in archive_acl_clear()
[all …]
HDarchive_entry.c167 archive_acl_clear(&entry->acl); in archive_entry_clear()
226 archive_acl_copy(&entry2->acl, &entry->acl); in archive_entry_clone()
372 return (AE_IFMT & entry->acl.mode); in archive_entry_filetype()
544 return (entry->acl.mode); in archive_entry_mode()
617 return (~AE_IFMT & entry->acl.mode); in archive_entry_perm()
814 entry->acl.mode &= ~AE_IFMT; in archive_entry_set_filetype()
815 entry->acl.mode |= AE_IFMT & type; in archive_entry_set_filetype()
1133 entry->acl.mode = m; in archive_entry_set_mode()
1207 entry->acl.mode &= AE_IFMT; in archive_entry_set_perm()
1208 entry->acl.mode |= ~AE_IFMT & p; in archive_entry_set_perm()
[all …]
/dragonfly/lib/libposix1e/
HDacl_init.c43 struct acl *acl; in acl_init() local
50 acl = (struct acl *) malloc(sizeof(struct acl)); in acl_init()
51 bzero(acl, sizeof(struct acl)); in acl_init()
53 return (acl); in acl_init()
57 acl_dup(acl_t acl) in acl_dup() argument
59 struct acl *acl_new; in acl_dup()
65 *acl_new = *acl; in acl_dup()
HDacl_valid.c52 acl_valid(acl_t acl) in acl_valid() argument
56 acl_sort(acl); in acl_valid()
57 error = acl_check(acl); in acl_valid()
68 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl) in acl_valid_file_np() argument
72 if (acl_posix1e(acl, type)) { in acl_valid_file_np()
73 error = acl_sort(acl); in acl_valid_file_np()
80 return (__acl_aclcheck_file(pathp, type, acl)); in acl_valid_file_np()
85 acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) in acl_valid_fd_np() argument
89 if (acl_posix1e(acl, type)) { in acl_valid_fd_np()
90 error = acl_sort(acl); in acl_valid_fd_np()
[all …]
HDacl_set.c46 acl_set_file(const char *path_p, acl_type_t type, acl_t acl) in acl_set_file() argument
50 if (acl_posix1e(acl, type)) { in acl_set_file()
51 error = acl_sort(acl); in acl_set_file()
58 return (__acl_set_file(path_p, type, acl)); in acl_set_file()
62 acl_set_fd(int fd, acl_t acl) in acl_set_fd() argument
66 error = acl_sort(acl); in acl_set_fd()
72 return (__acl_set_fd(fd, ACL_TYPE_ACCESS, acl)); in acl_set_fd()
76 acl_set_fd_np(int fd, acl_t acl, acl_type_t type) in acl_set_fd_np() argument
80 if (acl_posix1e(acl, type)) { in acl_set_fd_np()
81 error = acl_sort(acl); in acl_set_fd_np()
[all …]
HDacl_support.c96 acl_sort(acl_t acl) in acl_sort() argument
99 qsort(&acl->acl_entry[0], acl->acl_cnt, sizeof(struct acl_entry), in acl_sort()
111 acl_posix1e(acl_t acl, acl_type_t type) in acl_posix1e() argument
132 acl_check(struct acl *acl) in acl_check() argument
142 while (i < acl->acl_cnt) { in acl_check()
144 entry = &acl->acl_entry[i]; in acl_check()
394 acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id, acl_perm_t perm) in acl_add_entry() argument
398 if (acl->acl_cnt >= ACL_MAX_ENTRIES) { in acl_add_entry()
403 e = &(acl->acl_entry[acl->acl_cnt]); in acl_add_entry()
407 acl->acl_cnt++; in acl_add_entry()
HDacl_support.h38 int acl_check(struct acl *acl);
39 int acl_sort(acl_t acl);
40 int acl_posix1e(acl_t acl, acl_type_t type);
45 int acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id, acl_perm_t perm);
HDacl_to_text.c50 acl_to_text(acl_t acl, ssize_t *len_p) in acl_to_text() argument
64 for (i = 0; i < acl->acl_cnt; i++) in acl_to_text()
65 if (acl->acl_entry[i].ae_tag == ACL_MASK) in acl_to_text()
66 mask_perm = acl->acl_entry[i].ae_perm; in acl_to_text()
68 for (i = 0; i < acl->acl_cnt; i++) { in acl_to_text()
69 ae_tag = acl->acl_entry[i].ae_tag; in acl_to_text()
70 ae_id = acl->acl_entry[i].ae_id; in acl_to_text()
71 ae_perm = acl->acl_entry[i].ae_perm; in acl_to_text()
HDacl_from_text.c120 acl_t acl; in acl_from_text() local
133 acl = acl_init(3); in acl_from_text()
134 if (!acl) { in acl_from_text()
223 error = acl_add_entry(acl, t, id, p); in acl_from_text()
232 if (acl_valid(acl) == -1) { in acl_from_text()
238 return(acl); in acl_from_text()
241 acl_free(acl); in acl_from_text()
HDacl_get.c43 struct acl *aclp; in acl_get_file()
63 struct acl *aclp; in acl_get_fd()
83 struct acl *aclp; in acl_get_fd_np()
HDMakefile16 MAN= acl.3 \
/dragonfly/sys/sys/
HDacl.h61 struct acl { struct
65 typedef struct acl *acl_t;
104 int __acl_aclcheck_fd(int, acl_type_t, struct acl *);
105 int __acl_aclcheck_file(const char *, acl_type_t, struct acl *);
108 int __acl_get_fd(int, acl_type_t, struct acl *);
109 int __acl_get_file(const char *, acl_type_t, struct acl *);
110 int __acl_set_fd(int, acl_type_t, struct acl *);
111 int __acl_set_file(const char *, acl_type_t, struct acl *);
/dragonfly/sys/kern/
HDkern_acl.c50 static int vacl_set_acl(struct vnode *vp, acl_type_t type, struct acl *aclp);
51 static int vacl_get_acl(struct vnode *vp, acl_type_t type, struct acl *aclp);
52 static int vacl_aclcheck(struct vnode *vp, acl_type_t type, struct acl *aclp);
67 vacl_set_acl(struct vnode *vp, acl_type_t type, struct acl *aclp) in vacl_set_acl()
70 struct acl inkernacl; in vacl_set_acl()
74 error = copyin(aclp, &inkernacl, sizeof(struct acl)); in vacl_set_acl()
89 vacl_get_acl(struct vnode *vp, acl_type_t type, struct acl *aclp) in vacl_get_acl()
92 struct acl inkernelacl; in vacl_get_acl()
99 error = copyout(&inkernelacl, aclp, sizeof(struct acl)); in vacl_get_acl()
124 vacl_aclcheck(struct vnode *vp, acl_type_t type, struct acl *aclp) in vacl_aclcheck()
[all …]
/dragonfly/test/stress/stress2/misc/
HDextattrctl.sh67 touch $mntpoint/acl-test
68 setfacl -b $mntpoint/acl-test
69 setfacl -m user:nobody:rw-,group:wheel:rw- $mntpoint/acl-test
70 getfacl $mntpoint/acl-test
71 ls -l $mntpoint/acl-test
HDextattr.sh66 touch $mntpoint/acl-test
67 setfacl -b $mntpoint/acl-test
68 setfacl -m user:nobody:rw-,group:wheel:rw- $mntpoint/acl-test
71 /tmp/extattr $mntpoint/acl-test &
/dragonfly/sys/netgraph7/bluetooth/hci/
HDng_hci_ulpi.c158 if (hook == unit->acl) in ng_hci_lp_acl_con_req()
282 if (hook == unit->acl) in ng_hci_lp_acl_con_req()
583 if (unit->acl != NULL && NG_HOOK_IS_VALID(unit->acl)) { in ng_hci_lp_con_cfm()
595 unit->acl, 0); in ng_hci_lp_con_cfm()
600 __func__, NG_NODE_NAME(unit->node), unit->acl); in ng_hci_lp_con_cfm()
623 __func__, NG_NODE_NAME(unit->node), unit->acl); in ng_hci_lp_con_cfm()
650 hook = unit->acl; in ng_hci_lp_con_ind()
815 if (hook == unit->acl) in ng_hci_lp_con_rsp()
851 if (hook == unit->acl) in ng_hci_lp_con_rsp()
891 if (unit->acl != NULL && NG_HOOK_IS_VALID(unit->acl)) { in ng_hci_lp_discon_ind()
[all …]
HDng_hci_main.c195 h = &unit->acl; in ng_hci_newhook()
221 if (hook == unit->acl) { in ng_hci_connect()
248 if (hook == unit->acl) in ng_hci_disconnect()
249 unit->acl = NULL; in ng_hci_disconnect()
322 (unit->acl != NULL)? NG_HCI_HOOK_ACL : "", in ng_hci_default_rcvmsg()
361 ng_hci_node_is_up(unit->node, unit->acl, NULL, 0); in ng_hci_default_rcvmsg()
717 unit->acl == NULL || NG_HOOK_NOT_VALID(unit->acl)) { in ng_hci_drv_rcvdata()
721 unit->state, unit->acl); in ng_hci_drv_rcvdata()
725 NG_FWD_ITEM_HOOK(error, item, unit->acl); in ng_hci_drv_rcvdata()
/dragonfly/sys/netbt/
HDsco_upper.c122 struct hci_link *acl, *sco; in sco_connect() local
149 acl = hci_link_lookup_bdaddr(unit, &pcb->sp_raddr, HCI_LINK_ACL); in sco_connect()
150 if (acl == NULL || acl->hl_state != HCI_LINK_OPEN) in sco_connect()
161 KKASSERT(sco->hl_link == acl); in sco_connect()
163 cp.con_handle = htole16(acl->hl_handle); in sco_connect()
HDhci_unit.c222 int acl; in hci_disable() local
238 for (acl = 0 ; acl < 2 ; acl++) { in hci_disable()
242 if (acl || link->hl_type != HCI_LINK_ACL) in hci_disable()
HDhci_link.c765 struct hci_link *sco, *acl; in hci_sco_newconn() local
782 acl = hci_link_lookup_bdaddr(unit, bdaddr, HCI_LINK_ACL); in hci_sco_newconn()
783 if (acl == NULL || acl->hl_state != HCI_LINK_OPEN) in hci_sco_newconn()
811 KKASSERT(sco->hl_link == acl); in hci_sco_newconn()
HDhci_event.c1050 int acl; in hci_cmd_reset() local
1063 for (acl = 0 ; acl < 2 ; acl++) { in hci_cmd_reset()
1067 if (acl || link->hl_type != HCI_LINK_ACL) in hci_cmd_reset()
/dragonfly/contrib/tcpdump/
HDprint-rx.c1149 int pos, neg, acl; in acl_print() local
1165 #define ACLOUT(acl) \ in acl_print() argument
1167 acl & PRSFS_READ ? "r" : "", \ in acl_print()
1168 acl & PRSFS_LOOKUP ? "l" : "", \ in acl_print()
1169 acl & PRSFS_INSERT ? "i" : "", \ in acl_print()
1170 acl & PRSFS_DELETE ? "d" : "", \ in acl_print()
1171 acl & PRSFS_WRITE ? "w" : "", \ in acl_print()
1172 acl & PRSFS_LOCK ? "k" : "", \ in acl_print()
1173 acl & PRSFS_ADMINISTER ? "a" : ""); in acl_print()
1176 … if (sscanf((char *) s, "%" NUMSTRINGIFY(USERNAMEMAX) "s %d\n%n", user, &acl, &n) != 2) in acl_print()
[all …]
/dragonfly/sys/netproto/802_11/wlan/
HDieee80211_ioctl.c609 const struct ieee80211_aclator *acl = vap->iv_acl; in ieee80211_ioctl_getmaccmd() local
611 return (acl == NULL ? EINVAL : acl->iac_getioctl(vap, ireq)); in ieee80211_ioctl_getmaccmd()
1639 const struct ieee80211_aclator *acl = vap->iv_acl; in ieee80211_ioctl_macmac() local
1647 if (acl == NULL) { in ieee80211_ioctl_macmac()
1648 acl = ieee80211_aclator_get("mac"); in ieee80211_ioctl_macmac()
1649 if (acl == NULL || !acl->iac_attach(vap)) in ieee80211_ioctl_macmac()
1651 vap->iv_acl = acl; in ieee80211_ioctl_macmac()
1654 acl->iac_add(vap, mac); in ieee80211_ioctl_macmac()
1656 acl->iac_remove(vap, mac); in ieee80211_ioctl_macmac()
1663 const struct ieee80211_aclator *acl = vap->iv_acl; in ieee80211_ioctl_setmaccmd() local
[all …]
HDieee80211_proto.c499 static const struct ieee80211_aclator *acl = NULL; variable
505 acl = iac; in ieee80211_aclator_register()
511 if (acl == iac) in ieee80211_aclator_unregister()
512 acl = NULL; in ieee80211_aclator_unregister()
519 if (acl == NULL) in ieee80211_aclator_get()
521 return acl != NULL && strcmp(acl->iac_name, name) == 0 ? acl : NULL; in ieee80211_aclator_get()

12