Lines Matching refs:label
14 #include "include/label.h"
138 int aa_af_perm(const struct cred *subj_cred, struct aa_label *label,
144 return fn_for_each_confined(label, profile,
150 struct aa_label *label,
157 AA_BUG(!label);
160 if (ctx->label != kernel_t && !unconfined(label)) {
165 error = fn_for_each_confined(label, profile,
174 struct aa_label *label;
181 label = begin_current_label_crit_section();
182 error = aa_label_sk_perm(current_cred(), label, op, request, sk);
183 end_current_label_crit_section(label);
189 int aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label,
192 AA_BUG(!label);
196 return aa_label_sk_perm(subj_cred, label, op, request, sock->sk);
202 struct aa_label *label;
204 if (secmark->label[0] == '*') {
209 label = aa_label_strn_parse(&root_ns->unconfined->label,
210 secmark->label, strlen(secmark->label),
213 if (IS_ERR(label))
214 return PTR_ERR(label);
216 secmark->secid = label->secid;
256 int apparmor_secmark_check(struct aa_label *label, char *op, u32 request,
262 return fn_for_each_confined(label, profile,