• Home
  • Raw
  • Download

Lines Matching refs:acl

52     qemu_acl *acl;  in qemu_acl_init()  local
54 acl = qemu_acl_find(aclname); in qemu_acl_init()
55 if (acl) in qemu_acl_init()
56 return acl; in qemu_acl_init()
58 acl = qemu_malloc(sizeof(*acl)); in qemu_acl_init()
59 acl->aclname = qemu_strdup(aclname); in qemu_acl_init()
63 acl->defaultDeny = 1; in qemu_acl_init()
65 acl->nentries = 0; in qemu_acl_init()
66 QTAILQ_INIT(&acl->entries); in qemu_acl_init()
69 acls[nacls] = acl; in qemu_acl_init()
72 return acl; in qemu_acl_init()
75 int qemu_acl_party_is_allowed(qemu_acl *acl, in qemu_acl_party_is_allowed() argument
80 QTAILQ_FOREACH(entry, &acl->entries, next) { in qemu_acl_party_is_allowed()
92 return acl->defaultDeny ? 0 : 1; in qemu_acl_party_is_allowed()
96 void qemu_acl_reset(qemu_acl *acl) in qemu_acl_reset() argument
103 acl->defaultDeny = 1; in qemu_acl_reset()
104 QTAILQ_FOREACH(entry, &acl->entries, next) { in qemu_acl_reset()
105 QTAILQ_REMOVE(&acl->entries, entry, next); in qemu_acl_reset()
109 acl->nentries = 0; in qemu_acl_reset()
113 int qemu_acl_append(qemu_acl *acl, in qemu_acl_append() argument
123 QTAILQ_INSERT_TAIL(&acl->entries, entry, next); in qemu_acl_append()
124 acl->nentries++; in qemu_acl_append()
126 return acl->nentries; in qemu_acl_append()
130 int qemu_acl_insert(qemu_acl *acl, in qemu_acl_insert() argument
141 if (index >= acl->nentries) in qemu_acl_insert()
142 return qemu_acl_append(acl, deny, match); in qemu_acl_insert()
149 QTAILQ_FOREACH(tmp, &acl->entries, next) { in qemu_acl_insert()
153 acl->nentries++; in qemu_acl_insert()
161 int qemu_acl_remove(qemu_acl *acl, in qemu_acl_remove() argument
167 QTAILQ_FOREACH(entry, &acl->entries, next) { in qemu_acl_remove()
170 QTAILQ_REMOVE(&acl->entries, entry, next); in qemu_acl_remove()