Lines Matching refs:secmark
200 static int apparmor_secmark_init(struct aa_secmark *secmark) in apparmor_secmark_init() argument
204 if (secmark->label[0] == '*') { in apparmor_secmark_init()
205 secmark->secid = AA_SECID_WILDCARD; in apparmor_secmark_init()
210 secmark->label, strlen(secmark->label), in apparmor_secmark_init()
216 secmark->secid = label->secid; in apparmor_secmark_init()
233 if (!rules->secmark[i].secid) { in aa_secmark_perm()
234 ret = apparmor_secmark_init(&rules->secmark[i]); in aa_secmark_perm()
239 if (rules->secmark[i].secid == secid || in aa_secmark_perm()
240 rules->secmark[i].secid == AA_SECID_WILDCARD) { in aa_secmark_perm()
241 if (rules->secmark[i].deny) in aa_secmark_perm()
246 if (rules->secmark[i].audit) in aa_secmark_perm()