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)
315 void aa_label_destroy(struct aa_label *label)
342 void aa_label_free(struct aa_label *label)
351 static void label_free_switch(struct aa_label *label)
363 struct aa_label *label = container_of(head, struct aa_label, rcu);
372 struct aa_label *label = container_of(kref, struct aa_label, count);
390 static void label_free_or_put_new(struct aa_label *label, struct aa_label *new)
399 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp)
424 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp)
426 struct aa_label *new;
466 static int label_cmp(struct aa_label *a, struct aa_label *b)
477 int aa_label_next_confined(struct aa_label *label, int i)
500 struct aa_label *set,
501 struct aa_label *sub)
537 bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub)
564 bool aa_label_is_unconfined_subset(struct aa_label *set, struct aa_label *sub)
593 static bool __label_remove(struct aa_label *label, struct aa_label *new)
629 static bool __label_replace(struct aa_label *old, struct aa_label *new)
665 static struct aa_label *__label_insert(struct aa_labelset *ls,
666 struct aa_label *label, bool replace)
679 struct aa_label *this = rb_entry(*new, struct aa_label, node);
722 static struct aa_label *__vec_find(struct aa_profile **vec, int n)
732 struct aa_label *this = rb_entry(node, struct aa_label, node);
757 static struct aa_label *__label_find(struct aa_label *label)
772 bool aa_label_remove(struct aa_label *label)
795 bool aa_label_replace(struct aa_label *old, struct aa_label *new)
809 struct aa_label *l;
836 static struct aa_label *vec_find(struct aa_profile **vec, int n)
839 struct aa_label *label;
855 static struct aa_label *vec_create_and_insert_label(struct aa_profile **vec,
858 struct aa_label *label = NULL;
861 struct aa_label *new;
889 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len,
892 struct aa_label *label = vec_find(vec, len);
910 struct aa_label *aa_label_find(struct aa_label *label)
928 struct aa_label *aa_label_insert(struct aa_labelset *ls, struct aa_label *label)
930 struct aa_label *l;
963 struct aa_label *a,
964 struct aa_label *b)
1005 static int label_merge_cmp(struct aa_label *a, struct aa_label *b,
1006 struct aa_label *z)
1049 static struct aa_label *label_merge_insert(struct aa_label *new,
1050 struct aa_label *a,
1051 struct aa_label *b)
1053 struct aa_label *label;
1119 static struct aa_labelset *labelset_of_merge(struct aa_label *a,
1120 struct aa_label *b)
1141 static struct aa_label *__label_find_merge(struct aa_labelset *ls,
1142 struct aa_label *a,
1143 struct aa_label *b)
1156 struct aa_label *this = container_of(node, struct aa_label,
1182 struct aa_label *aa_label_find_merge(struct aa_label *a, struct aa_label *b)
1185 struct aa_label *label, *ar = NULL, *br = NULL;
1219 struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b,
1222 struct aa_label *label = NULL;
1237 struct aa_label *new;
1299 struct aa_label *label,
1359 struct aa_label *label, aa_state_t start,
1419 struct aa_label *label, aa_state_t state, bool subns,
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);