Lines Matching refs:label
47 void aa_secid_update(u32 secid, struct aa_label *label) in aa_secid_update() argument
52 __xa_store(&aa_secids, secid, label, 0); in aa_secid_update()
67 struct aa_label *label = aa_secid_to_label(secid); in apparmor_secid_to_secctx() local
73 if (!label) in apparmor_secid_to_secctx()
80 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx()
83 len = aa_label_snxprint(NULL, 0, root_ns, label, flags); in apparmor_secid_to_secctx()
95 struct aa_label *label; in apparmor_secctx_to_secid() local
97 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
99 if (IS_ERR(label)) in apparmor_secctx_to_secid()
100 return PTR_ERR(label); in apparmor_secctx_to_secid()
101 *secid = label->secid; in apparmor_secctx_to_secid()
119 int aa_alloc_secid(struct aa_label *label, gfp_t gfp) in aa_alloc_secid() argument
125 ret = __xa_alloc(&aa_secids, &label->secid, label, in aa_alloc_secid()
130 label->secid = AA_SECID_INVALID; in aa_alloc_secid()