Lines Matching refs:aa_label

52 		RCU_INIT_POINTER(proxy->label, (struct aa_label *)PROXY_POISON);  in free_proxy()
64 struct aa_proxy *aa_alloc_proxy(struct aa_label *label, gfp_t gfp) in aa_alloc_proxy()
77 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new) in __aa_proxy_redirect()
79 struct aa_label *tmp; in __aa_proxy_redirect()
92 static void __proxy_share(struct aa_label *old, struct aa_label *new) in __proxy_share()
316 static void label_destroy(struct aa_label *label) in label_destroy()
318 struct aa_label *tmp; in label_destroy()
348 void aa_label_free(struct aa_label *label) in aa_label_free()
357 static void label_free_switch(struct aa_label *label) in label_free_switch()
369 struct aa_label *label = container_of(head, struct aa_label, rcu); in label_free_rcu()
378 struct aa_label *label = container_of(kref, struct aa_label, count); in aa_label_kref()
396 static void label_free_or_put_new(struct aa_label *label, struct aa_label *new) in label_free_or_put_new()
405 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp) in aa_label_init()
430 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp) in aa_label_alloc()
432 struct aa_label *new; in aa_label_alloc()
473 static int label_cmp(struct aa_label *a, struct aa_label *b) in label_cmp()
484 int aa_label_next_confined(struct aa_label *label, int i) in aa_label_next_confined()
507 struct aa_label *set, in __aa_label_next_not_in_set()
508 struct aa_label *sub) in __aa_label_next_not_in_set()
544 bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub) in aa_label_is_subset()
567 static bool __label_remove(struct aa_label *label, struct aa_label *new) in __label_remove()
603 static bool __label_replace(struct aa_label *old, struct aa_label *new) in __label_replace()
639 static struct aa_label *__label_insert(struct aa_labelset *ls, in __label_insert()
640 struct aa_label *label, bool replace) in __label_insert()
653 struct aa_label *this = rb_entry(*new, struct aa_label, node); in __label_insert()
696 static struct aa_label *__vec_find(struct aa_profile **vec, int n) in __vec_find()
706 struct aa_label *this = rb_entry(node, struct aa_label, node); in __vec_find()
731 static struct aa_label *__label_find(struct aa_label *label) in __label_find()
746 bool aa_label_remove(struct aa_label *label) in aa_label_remove()
769 bool aa_label_replace(struct aa_label *old, struct aa_label *new) in aa_label_replace()
783 struct aa_label *l; in aa_label_replace()
810 static struct aa_label *vec_find(struct aa_profile **vec, int n) in vec_find()
813 struct aa_label *label; in vec_find()
829 static struct aa_label *vec_create_and_insert_label(struct aa_profile **vec, in vec_create_and_insert_label()
832 struct aa_label *label = NULL; in vec_create_and_insert_label()
835 struct aa_label *new; in vec_create_and_insert_label()
863 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, in aa_vec_find_or_create_label()
866 struct aa_label *label = vec_find(vec, len); in aa_vec_find_or_create_label()
884 struct aa_label *aa_label_find(struct aa_label *label) in aa_label_find()
902 struct aa_label *aa_label_insert(struct aa_labelset *ls, struct aa_label *label) in aa_label_insert()
904 struct aa_label *l; in aa_label_insert()
937 struct aa_label *a, in aa_label_next_in_merge()
938 struct aa_label *b) in aa_label_next_in_merge()
979 static int label_merge_cmp(struct aa_label *a, struct aa_label *b, in label_merge_cmp()
980 struct aa_label *z) in label_merge_cmp()
1023 static struct aa_label *label_merge_insert(struct aa_label *new, in label_merge_insert()
1024 struct aa_label *a, in label_merge_insert()
1025 struct aa_label *b) in label_merge_insert()
1027 struct aa_label *label; in label_merge_insert()
1094 static struct aa_labelset *labelset_of_merge(struct aa_label *a, in labelset_of_merge()
1095 struct aa_label *b) in labelset_of_merge()
1116 static struct aa_label *__label_find_merge(struct aa_labelset *ls, in __label_find_merge()
1117 struct aa_label *a, in __label_find_merge()
1118 struct aa_label *b) in __label_find_merge()
1131 struct aa_label *this = container_of(node, struct aa_label, in __label_find_merge()
1157 struct aa_label *aa_label_find_merge(struct aa_label *a, struct aa_label *b) in aa_label_find_merge()
1160 struct aa_label *label, *ar = NULL, *br = NULL; in aa_label_find_merge()
1194 struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b, in aa_label_merge()
1197 struct aa_label *label = NULL; in aa_label_merge()
1212 struct aa_label *new; in aa_label_merge()
1235 struct aa_label *label) in label_is_visible()
1278 struct aa_label *label, in label_compound_match()
1336 struct aa_label *label, unsigned int start, in label_components_match()
1394 int aa_label_match(struct aa_profile *profile, struct aa_label *label, in aa_label_match()
1420 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name()
1452 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname()
1527 static const char *label_modename(struct aa_ns *ns, struct aa_label *label, in label_modename()
1560 static inline bool display_mode(struct aa_ns *ns, struct aa_label *label, in display_mode()
1598 struct aa_label *label, int flags) in aa_label_snxprint()
1661 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint()
1691 struct aa_label *label, int flags, gfp_t gfp) in aa_label_acntsxprint()
1710 struct aa_label *label, int flags, gfp_t gfp) in aa_label_xaudit()
1740 struct aa_label *label, int flags, gfp_t gfp) in aa_label_seq_xprint()
1763 void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags, in aa_label_xprintk()
1786 void aa_label_audit(struct audit_buffer *ab, struct aa_label *label, gfp_t gfp) in aa_label_audit()
1794 void aa_label_seq_print(struct seq_file *f, struct aa_label *label, gfp_t gfp) in aa_label_seq_print()
1802 void aa_label_printk(struct aa_label *label, gfp_t gfp) in aa_label_printk()
1835 static struct aa_profile *fqlookupn_profile(struct aa_label *base, in fqlookupn_profile()
1836 struct aa_label *currentbase, in fqlookupn_profile()
1859 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, in aa_label_strn_parse()
1864 struct aa_label *label, *currbase = base; in aa_label_strn_parse()
1940 struct aa_label *aa_label_parse(struct aa_label *base, const char *str, in aa_label_parse()
1963 struct aa_label *this = rb_entry(node, struct aa_label, node); in aa_labelset_destroy()
1985 static struct aa_label *labelset_next_stale(struct aa_labelset *ls) in labelset_next_stale()
1987 struct aa_label *label; in labelset_next_stale()
1996 label = rb_entry(node, struct aa_label, node); in labelset_next_stale()
2023 static struct aa_label *__label_update(struct aa_label *label) in __label_update()
2025 struct aa_label *new, *tmp; in __label_update()
2097 struct aa_label *label; in __labelset_update()
2105 struct aa_label *l = __label_update(label); in __labelset_update()