Lines Matching refs:profile

63 static int profile_ptrace_perm(struct aa_profile *profile,  in profile_ptrace_perm()  argument
70 aa_profile_match_label(profile, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm()
72 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm()
73 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm()
121 struct aa_profile *profile; in aa_may_ptrace() local
125 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
126 profile_tracer_perm(profile, tracee, request, &sa), in aa_may_ptrace()
127 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()
187 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() argument
194 if (profile_unconfined(profile) || in profile_signal_perm()
195 !PROFILE_MEDIATES(profile, AA_CLASS_SIGNAL)) in profile_signal_perm()
200 state = aa_dfa_next(profile->policy.dfa, in profile_signal_perm()
201 profile->policy.start[AA_CLASS_SIGNAL], in profile_signal_perm()
203 aa_label_match(profile, peer, state, false, request, &perms); in profile_signal_perm()
204 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm()
205 return aa_check_perms(profile, &perms, request, sa, audit_signal_cb); in profile_signal_perm()
210 struct aa_profile *profile; in aa_may_signal() local
215 return xcheck_labels(sender, target, profile, in aa_may_signal()
216 profile_signal_perm(profile, target, MAY_WRITE, &sa), in aa_may_signal()
217 profile_signal_perm(profile, sender, MAY_READ, &sa)); in aa_may_signal()