Lines Matching refs:label
52 void aa_secid_update(u32 secid, struct aa_label *label) in aa_secid_update() argument
57 idr_replace(&aa_secids, label, secid); in aa_secid_update()
67 struct aa_label *label; in aa_secid_to_label() local
70 label = idr_find(&aa_secids, secid); in aa_secid_to_label()
73 return label; in aa_secid_to_label()
79 struct aa_label *label = aa_secid_to_label(secid); in apparmor_secid_to_secctx() local
84 if (!label) in apparmor_secid_to_secctx()
88 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx()
93 len = aa_label_snxprint(NULL, 0, root_ns, label, in apparmor_secid_to_secctx()
106 struct aa_label *label; in apparmor_secctx_to_secid() local
108 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
110 if (IS_ERR(label)) in apparmor_secctx_to_secid()
111 return PTR_ERR(label); in apparmor_secctx_to_secid()
112 *secid = label->secid; in apparmor_secctx_to_secid()
130 int aa_alloc_secid(struct aa_label *label, gfp_t gfp) in aa_alloc_secid() argument
137 ret = idr_alloc(&aa_secids, label, AA_FIRST_SECID, 0, GFP_ATOMIC); in aa_alloc_secid()
142 label->secid = AA_SECID_INVALID; in aa_alloc_secid()
147 label->secid = ret; in aa_alloc_secid()