Searched refs:orig (Results 1 – 10 of 10) sorted by relevance
/security/selinux/ss/ |
D | hashtab.c | 132 int hashtab_duplicate(struct hashtab *new, struct hashtab *orig, in hashtab_duplicate() argument 134 struct hashtab_node *orig, void *args), in hashtab_duplicate() argument 143 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL); in hashtab_duplicate() 147 new->size = orig->size; in hashtab_duplicate() 149 for (i = 0; i < orig->size; i++) { in hashtab_duplicate() 151 for (cur = orig->htable[i]; cur; cur = cur->next) { in hashtab_duplicate()
|
D | conditional.c | 607 struct cond_av_list *orig, in cond_dup_av_list() argument 614 new->nodes = kcalloc(orig->len, sizeof(*new->nodes), GFP_KERNEL); in cond_dup_av_list() 618 for (i = 0; i < orig->len; i++) { in cond_dup_av_list() 620 &orig->nodes[i]->key, in cond_dup_av_list() 621 &orig->nodes[i]->datum); in cond_dup_av_list() 688 static int cond_bools_copy(struct hashtab_node *new, struct hashtab_node *orig, void *args) in cond_bools_copy() argument 692 datum = kmemdup(orig->datum, sizeof(struct cond_bool_datum), in cond_bools_copy() 697 new->key = orig->key; /* No need to copy, never modified */ in cond_bools_copy() 714 struct policydb *orig) in duplicate_policydb_bools() argument 719 cond_bool_array = kmalloc_array(orig->p_bools.nprim, in duplicate_policydb_bools() [all …]
|
D | hashtab.h | 139 int hashtab_duplicate(struct hashtab *new, struct hashtab *orig, 141 struct hashtab_node *orig, void *args),
|
D | conditional.h | 83 int cond_policydb_dup(struct policydb *new, struct policydb *orig);
|
D | avtab.h | 92 int avtab_alloc_dup(struct avtab *new, const struct avtab *orig);
|
D | avtab.c | 352 int avtab_alloc_dup(struct avtab *new, const struct avtab *orig) in avtab_alloc_dup() argument 354 return avtab_alloc_common(new, orig->nslot); in avtab_alloc_dup()
|
/security/ |
D | device_cgroup.c | 61 static int dev_exceptions_copy(struct list_head *dest, struct list_head *orig) in dev_exceptions_copy() argument 67 list_for_each_entry(ex, orig, list) { in dev_exceptions_copy() 84 static void dev_exceptions_move(struct list_head *dest, struct list_head *orig) in dev_exceptions_move() argument 90 list_for_each_entry_safe(ex, tmp, orig, list) { in dev_exceptions_move()
|
/security/selinux/ |
D | avc.c | 856 struct avc_node *pos, *node, *orig = NULL; in avc_update_node() local 879 orig = pos; in avc_update_node() 884 if (!orig) { in avc_update_node() 894 avc_node_populate(node, ssid, tsid, tclass, &orig->ae.avd); in avc_update_node() 896 if (orig->ae.xp_node) { in avc_update_node() 897 rc = avc_xperms_populate(node, orig->ae.xp_node); in avc_update_node() 930 avc_node_replace(avc, node, orig); in avc_update_node()
|
/security/apparmor/ |
D | label.c | 73 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new) in __aa_proxy_redirect() argument 77 AA_BUG(!orig); in __aa_proxy_redirect() 79 lockdep_assert_held_write(&labels_set(orig)->lock); in __aa_proxy_redirect() 81 tmp = rcu_dereference_protected(orig->proxy->label, in __aa_proxy_redirect() 82 &labels_ns(orig)->lock); in __aa_proxy_redirect() 83 rcu_assign_pointer(orig->proxy->label, aa_get_label(new)); in __aa_proxy_redirect() 84 orig->flags |= FLAG_STALE; in __aa_proxy_redirect()
|
/security/apparmor/include/ |
D | label.h | 466 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new);
|