Home
last modified time | relevance | path

Searched refs:tracee (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/security/yama/
Dyama_lsm.c36 struct task_struct *tracee; member
146 struct task_struct *tracee) in yama_ptracer_add() argument
154 added->tracee = tracee; in yama_ptracer_add()
163 if (relation->tracee == tracee) { in yama_ptracer_add()
184 struct task_struct *tracee) in yama_ptracer_del() argument
193 if (relation->tracee == tracee || in yama_ptracer_del()
310 struct task_struct *tracee) in ptracer_exception_found() argument
323 parent = ptrace_parent(tracee); in ptracer_exception_found()
330 if (!thread_group_leader(tracee)) in ptracer_exception_found()
331 tracee = rcu_dereference(tracee->group_leader); in ptracer_exception_found()
[all …]
/Linux-v4.19/security/apparmor/
Dipc.c82 static int profile_tracee_perm(struct aa_profile *tracee, in profile_tracee_perm() argument
86 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm()
87 !PROFILE_MEDIATES(tracee, AA_CLASS_PTRACE)) in profile_tracee_perm()
90 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm()
94 struct aa_label *tracee, u32 request, in profile_tracer_perm() argument
101 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm()
104 if (&tracer->label == tracee) in profile_tracer_perm()
108 aad(sa)->peer = tracee; in profile_tracer_perm()
123 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee, in aa_may_ptrace() argument
130 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace()
[all …]
Dlsm.c114 struct aa_label *tracer, *tracee; in apparmor_ptrace_access_check() local
118 tracee = aa_get_task_label(child); in apparmor_ptrace_access_check()
119 error = aa_may_ptrace(tracer, tracee, in apparmor_ptrace_access_check()
122 aa_put_label(tracee); in apparmor_ptrace_access_check()
130 struct aa_label *tracer, *tracee; in apparmor_ptrace_traceme() local
133 tracee = begin_current_label_crit_section(); in apparmor_ptrace_traceme()
135 error = aa_may_ptrace(tracer, tracee, AA_PTRACE_TRACE); in apparmor_ptrace_traceme()
137 end_current_label_crit_section(tracee); in apparmor_ptrace_traceme()
/Linux-v4.19/tools/testing/selftests/seccomp/
Dseccomp_bpf.c1319 pid_t tracee, int status, void *args);
1321 void start_tracer(struct __test_metadata *_metadata, int fd, pid_t tracee, in start_tracer() argument
1335 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0); in start_tracer()
1337 kill(tracee, SIGKILL); in start_tracer()
1342 ret = ptrace(PTRACE_SETOPTIONS, tracee, NULL, ptrace_syscall ? in start_tracer()
1347 kill(tracee, SIGKILL); in start_tracer()
1350 tracee, NULL, 0); in start_tracer()
1361 if (wait(&status) != tracee) in start_tracer()
1370 tracer_func(_metadata, tracee, status, args); in start_tracer()
1373 tracee, NULL, 0); in start_tracer()
[all …]
/Linux-v4.19/security/apparmor/include/
Dipc.h36 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee,