Lines Matching full:profile
77 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() argument
81 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_signal_perm()
86 if (profile_unconfined(profile) || in profile_signal_perm()
87 !ANY_RULE_MEDIATES(&profile->rules, AA_CLASS_SIGNAL)) in profile_signal_perm()
91 /* TODO: secondary cache check <profile, profile, perm> */ in profile_signal_perm()
95 aa_label_match(profile, rules, peer, state, false, request, &perms); in profile_signal_perm()
96 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm()
97 return aa_check_perms(profile, &perms, request, sa, audit_signal_cb); in profile_signal_perm()
102 struct aa_profile *profile; in aa_may_signal() local
107 return xcheck_labels(sender, target, profile, in aa_may_signal()
108 profile_signal_perm(profile, target, MAY_WRITE, &sa), in aa_may_signal()
109 profile_signal_perm(profile, sender, MAY_READ, &sa)); in aa_may_signal()