Lines Matching refs:aa_label
48 RCU_INIT_POINTER(proxy->label, (struct aa_label *)PROXY_POISON); in free_proxy()
60 struct aa_proxy *aa_alloc_proxy(struct aa_label *label, gfp_t gfp) in aa_alloc_proxy()
73 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new) in __aa_proxy_redirect()
75 struct aa_label *tmp; in __aa_proxy_redirect()
88 static void __proxy_share(struct aa_label *old, struct aa_label *new) in __proxy_share()
312 void aa_label_destroy(struct aa_label *label) in aa_label_destroy()
339 void aa_label_free(struct aa_label *label) in aa_label_free()
348 static void label_free_switch(struct aa_label *label) in label_free_switch()
360 struct aa_label *label = container_of(head, struct aa_label, rcu); in label_free_rcu()
369 struct aa_label *label = container_of(kref, struct aa_label, count); in aa_label_kref()
387 static void label_free_or_put_new(struct aa_label *label, struct aa_label *new) in label_free_or_put_new()
396 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp) in aa_label_init()
421 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp) in aa_label_alloc()
423 struct aa_label *new; in aa_label_alloc()
464 static int label_cmp(struct aa_label *a, struct aa_label *b) in label_cmp()
475 int aa_label_next_confined(struct aa_label *label, int i) in aa_label_next_confined()
498 struct aa_label *set, in __aa_label_next_not_in_set()
499 struct aa_label *sub) in __aa_label_next_not_in_set()
535 bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub) in aa_label_is_subset()
562 bool aa_label_is_unconfined_subset(struct aa_label *set, struct aa_label *sub) in aa_label_is_unconfined_subset()
591 static bool __label_remove(struct aa_label *label, struct aa_label *new) in __label_remove()
627 static bool __label_replace(struct aa_label *old, struct aa_label *new) in __label_replace()
663 static struct aa_label *__label_insert(struct aa_labelset *ls, in __label_insert()
664 struct aa_label *label, bool replace) in __label_insert()
677 struct aa_label *this = rb_entry(*new, struct aa_label, node); in __label_insert()
720 static struct aa_label *__vec_find(struct aa_profile **vec, int n) in __vec_find()
730 struct aa_label *this = rb_entry(node, struct aa_label, node); in __vec_find()
755 static struct aa_label *__label_find(struct aa_label *label) in __label_find()
770 bool aa_label_remove(struct aa_label *label) in aa_label_remove()
793 bool aa_label_replace(struct aa_label *old, struct aa_label *new) in aa_label_replace()
807 struct aa_label *l; in aa_label_replace()
834 static struct aa_label *vec_find(struct aa_profile **vec, int n) in vec_find()
837 struct aa_label *label; in vec_find()
853 static struct aa_label *vec_create_and_insert_label(struct aa_profile **vec, in vec_create_and_insert_label()
856 struct aa_label *label = NULL; in vec_create_and_insert_label()
859 struct aa_label *new; in vec_create_and_insert_label()
887 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, in aa_vec_find_or_create_label()
890 struct aa_label *label = vec_find(vec, len); in aa_vec_find_or_create_label()
908 struct aa_label *aa_label_find(struct aa_label *label) in aa_label_find()
926 struct aa_label *aa_label_insert(struct aa_labelset *ls, struct aa_label *label) in aa_label_insert()
928 struct aa_label *l; in aa_label_insert()
961 struct aa_label *a, in aa_label_next_in_merge()
962 struct aa_label *b) in aa_label_next_in_merge()
1003 static int label_merge_cmp(struct aa_label *a, struct aa_label *b, in label_merge_cmp()
1004 struct aa_label *z) in label_merge_cmp()
1047 static struct aa_label *label_merge_insert(struct aa_label *new, in label_merge_insert()
1048 struct aa_label *a, in label_merge_insert()
1049 struct aa_label *b) in label_merge_insert()
1051 struct aa_label *label; in label_merge_insert()
1118 static struct aa_labelset *labelset_of_merge(struct aa_label *a, in labelset_of_merge()
1119 struct aa_label *b) in labelset_of_merge()
1140 static struct aa_label *__label_find_merge(struct aa_labelset *ls, in __label_find_merge()
1141 struct aa_label *a, in __label_find_merge()
1142 struct aa_label *b) in __label_find_merge()
1155 struct aa_label *this = container_of(node, struct aa_label, in __label_find_merge()
1181 struct aa_label *aa_label_find_merge(struct aa_label *a, struct aa_label *b) in aa_label_find_merge()
1184 struct aa_label *label, *ar = NULL, *br = NULL; in aa_label_find_merge()
1218 struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b, in aa_label_merge()
1221 struct aa_label *label = NULL; in aa_label_merge()
1236 struct aa_label *new; in aa_label_merge()
1259 struct aa_label *label) in label_is_visible()
1302 struct aa_label *label, in label_compound_match()
1360 struct aa_label *label, unsigned int start, in label_components_match()
1418 int aa_label_match(struct aa_profile *profile, struct aa_label *label, in aa_label_match()
1444 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name()
1476 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname()
1553 static const char *label_modename(struct aa_ns *ns, struct aa_label *label, in label_modename()
1586 static inline bool display_mode(struct aa_ns *ns, struct aa_label *label, in display_mode()
1624 struct aa_label *label, int flags) in aa_label_snxprint()
1687 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint()
1717 struct aa_label *label, int flags, gfp_t gfp) in aa_label_acntsxprint()
1736 struct aa_label *label, int flags, gfp_t gfp) in aa_label_xaudit()
1766 struct aa_label *label, int flags, gfp_t gfp) in aa_label_seq_xprint()
1789 void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags, in aa_label_xprintk()
1812 void aa_label_audit(struct audit_buffer *ab, struct aa_label *label, gfp_t gfp) in aa_label_audit()
1820 void aa_label_seq_print(struct seq_file *f, struct aa_label *label, gfp_t gfp) in aa_label_seq_print()
1828 void aa_label_printk(struct aa_label *label, gfp_t gfp) in aa_label_printk()
1861 static struct aa_profile *fqlookupn_profile(struct aa_label *base, in fqlookupn_profile()
1862 struct aa_label *currentbase, in fqlookupn_profile()
1885 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, in aa_label_strn_parse()
1890 struct aa_label *label, *currbase = base; in aa_label_strn_parse()
1967 struct aa_label *aa_label_parse(struct aa_label *base, const char *str, in aa_label_parse()
1990 struct aa_label *this = rb_entry(node, struct aa_label, node); in aa_labelset_destroy()
2012 static struct aa_label *labelset_next_stale(struct aa_labelset *ls) in labelset_next_stale()
2014 struct aa_label *label; in labelset_next_stale()
2023 label = rb_entry(node, struct aa_label, node); in labelset_next_stale()
2050 static struct aa_label *__label_update(struct aa_label *label) in __label_update()
2052 struct aa_label *new, *tmp; in __label_update()
2124 struct aa_label *label; in __labelset_update()
2132 struct aa_label *l = __label_update(label); in __labelset_update()