Lines Matching refs:srp

211 static int smk_set_access(struct smack_parsed_rule *srp,  in smk_set_access()  argument
226 if (sp->smk_object == srp->smk_object && in smk_set_access()
227 sp->smk_subject == srp->smk_subject) { in smk_set_access()
229 sp->smk_access |= srp->smk_access1; in smk_set_access()
230 sp->smk_access &= ~srp->smk_access2; in smk_set_access()
242 sp->smk_subject = srp->smk_subject; in smk_set_access()
243 sp->smk_object = srp->smk_object; in smk_set_access()
244 sp->smk_access = srp->smk_access1 & ~srp->smk_access2; in smk_set_access()
564 static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max) in smk_rule_show() argument
572 if (strlen(srp->smk_subject->smk_known) >= max || in smk_rule_show()
573 strlen(srp->smk_object->smk_known) >= max) in smk_rule_show()
576 if (srp->smk_access == 0) in smk_rule_show()
580 srp->smk_subject->smk_known, in smk_rule_show()
581 srp->smk_object->smk_known); in smk_rule_show()
585 if (srp->smk_access & MAY_READ) in smk_rule_show()
587 if (srp->smk_access & MAY_WRITE) in smk_rule_show()
589 if (srp->smk_access & MAY_EXEC) in smk_rule_show()
591 if (srp->smk_access & MAY_APPEND) in smk_rule_show()
593 if (srp->smk_access & MAY_TRANSMUTE) in smk_rule_show()
595 if (srp->smk_access & MAY_LOCK) in smk_rule_show()
597 if (srp->smk_access & MAY_BRINGUP) in smk_rule_show()
620 struct smack_rule *srp; in load_seq_show() local
624 list_for_each_entry_rcu(srp, &skp->smk_rules, list) in load_seq_show()
625 smk_rule_show(s, srp, SMK_LABELLEN); in load_seq_show()
2198 struct smack_rule *srp = in load_self_seq_show() local
2201 smk_rule_show(s, srp, SMK_LABELLEN); in load_self_seq_show()
2327 struct smack_rule *srp; in load2_seq_show() local
2331 list_for_each_entry_rcu(srp, &skp->smk_rules, list) in load2_seq_show()
2332 smk_rule_show(s, srp, SMK_LONGLABEL); in load2_seq_show()
2406 struct smack_rule *srp = in load_self2_seq_show() local
2409 smk_rule_show(s, srp, SMK_LONGLABEL); in load_self2_seq_show()