Home
last modified time | relevance | path

Searched refs:srp (Results 1 – 3 of 3) sorted by relevance

/security/smack/
Dsmackfs.c212 static int smk_set_access(struct smack_parsed_rule *srp, in smk_set_access() argument
227 if (sp->smk_object == srp->smk_object && in smk_set_access()
228 sp->smk_subject == srp->smk_subject) { in smk_set_access()
230 sp->smk_access |= srp->smk_access1; in smk_set_access()
231 sp->smk_access &= ~srp->smk_access2; in smk_set_access()
243 sp->smk_subject = srp->smk_subject; in smk_set_access()
244 sp->smk_object = srp->smk_object; in smk_set_access()
245 sp->smk_access = srp->smk_access1 & ~srp->smk_access2; in smk_set_access()
565 static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max) in smk_rule_show() argument
573 if (strlen(srp->smk_subject->smk_known) >= max || in smk_rule_show()
[all …]
Dsmack_access.c84 struct smack_rule *srp; in smk_access_entry() local
86 list_for_each_entry_rcu(srp, rule_list, list) { in smk_access_entry()
87 if (srp->smk_object->smk_known == object_label && in smk_access_entry()
88 srp->smk_subject->smk_known == subject_label) { in smk_access_entry()
89 int may = srp->smk_access; in smk_access_entry()
Dsmack_lsm.c1714 struct smack_rule *srp; in smack_mmap_file() local
1749 list_for_each_entry_rcu(srp, &skp->smk_rules, list) { in smack_mmap_file()
1750 okp = srp->smk_object; in smack_mmap_file()
1760 may = smk_access_entry(srp->smk_subject->smk_known, in smack_mmap_file()
1764 may = srp->smk_access; in smack_mmap_file()
1766 may &= srp->smk_access; in smack_mmap_file()