Lines Matching full:label

14 #include "include/label.h"
102 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_net_cb()
134 int aa_af_perm(struct aa_label *label, const char *op, u32 request, u16 family, in aa_af_perm() argument
140 return fn_for_each_confined(label, profile, in aa_af_perm()
145 static int aa_label_sk_perm(struct aa_label *label, const char *op, u32 request, in aa_label_sk_perm() argument
151 AA_BUG(!label); in aa_label_sk_perm()
154 if (ctx->label != kernel_t && !unconfined(label)) { in aa_label_sk_perm()
158 error = fn_for_each_confined(label, profile, in aa_label_sk_perm()
167 struct aa_label *label; in aa_sk_perm() local
174 label = begin_current_label_crit_section(); in aa_sk_perm()
175 error = aa_label_sk_perm(label, op, request, sk); in aa_sk_perm()
176 end_current_label_crit_section(label); in aa_sk_perm()
182 int aa_sock_file_perm(struct aa_label *label, const char *op, u32 request, in aa_sock_file_perm() argument
185 AA_BUG(!label); in aa_sock_file_perm()
189 return aa_label_sk_perm(label, op, request, sock->sk); in aa_sock_file_perm()
195 struct aa_label *label; in apparmor_secmark_init() local
197 if (secmark->label[0] == '*') { in apparmor_secmark_init()
202 label = aa_label_strn_parse(&root_ns->unconfined->label, in apparmor_secmark_init()
203 secmark->label, strlen(secmark->label), in apparmor_secmark_init()
206 if (IS_ERR(label)) in apparmor_secmark_init()
207 return PTR_ERR(label); in apparmor_secmark_init()
209 secmark->secid = label->secid; in apparmor_secmark_init()
247 int apparmor_secmark_check(struct aa_label *label, char *op, u32 request, in apparmor_secmark_check() argument
253 return fn_for_each_confined(label, profile, in apparmor_secmark_check()