• Home
  • Raw
  • Download

Lines Matching refs:profile

69 static int profile_ptrace_perm(struct aa_profile *profile,  in profile_ptrace_perm()  argument
76 aa_profile_match_label(profile, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm()
78 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm()
79 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm()
126 struct aa_profile *profile; in aa_may_ptrace() local
130 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
131 profile_tracer_perm(profile, tracee, request, &sa), in aa_may_ptrace()
132 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace()
188 static void profile_match_signal(struct aa_profile *profile, const char *label, in profile_match_signal() argument
194 state = aa_dfa_next(profile->policy.dfa, in profile_match_signal()
195 profile->policy.start[AA_CLASS_SIGNAL], in profile_match_signal()
197 state = aa_dfa_match(profile->policy.dfa, state, label); in profile_match_signal()
198 aa_compute_perms(profile->policy.dfa, state, perms); in profile_match_signal()
201 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() argument
207 if (profile_unconfined(profile) || in profile_signal_perm()
208 !PROFILE_MEDIATES(profile, AA_CLASS_SIGNAL)) in profile_signal_perm()
212 profile_match_signal(profile, peer->base.hname, aad(sa)->signal, in profile_signal_perm()
214 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm()
215 return aa_check_perms(profile, &perms, request, sa, audit_signal_cb); in profile_signal_perm()