Lines Matching refs:secmark
195 static int apparmor_secmark_init(struct aa_secmark *secmark) in apparmor_secmark_init() argument
199 if (secmark->label[0] == '*') { in apparmor_secmark_init()
200 secmark->secid = AA_SECID_WILDCARD; in apparmor_secmark_init()
205 secmark->label, strlen(secmark->label), in apparmor_secmark_init()
211 secmark->secid = label->secid; in apparmor_secmark_init()
228 if (!rules->secmark[i].secid) { in aa_secmark_perm()
229 ret = apparmor_secmark_init(&rules->secmark[i]); in aa_secmark_perm()
234 if (rules->secmark[i].secid == secid || in aa_secmark_perm()
235 rules->secmark[i].secid == AA_SECID_WILDCARD) { in aa_secmark_perm()
236 if (rules->secmark[i].deny) in aa_secmark_perm()
241 if (rules->secmark[i].audit) in aa_secmark_perm()