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