Searched refs:tracer (Results 1 – 7 of 7) sorted by relevance
/security/apparmor/ |
D | ipc.c | 79 struct aa_label *tracer, u32 request, in profile_tracee_perm() argument 82 if (profile_unconfined(tracee) || unconfined(tracer) || in profile_tracee_perm() 86 return profile_ptrace_perm(tracee, tracer, request, sa); in profile_tracee_perm() 89 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() argument 93 if (profile_unconfined(tracer)) in profile_tracer_perm() 96 if (PROFILE_MEDIATES(tracer, AA_CLASS_PTRACE)) in profile_tracer_perm() 97 return profile_ptrace_perm(tracer, tracee, request, sa); in profile_tracer_perm() 100 if (&tracer->label == tracee) in profile_tracer_perm() 103 aad(sa)->label = &tracer->label; in profile_tracer_perm() 106 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm() [all …]
|
D | lsm.c | 108 struct aa_label *tracer, *tracee; in apparmor_ptrace_access_check() local 111 tracer = __begin_current_label_crit_section(); in apparmor_ptrace_access_check() 113 error = aa_may_ptrace(tracer, tracee, in apparmor_ptrace_access_check() 117 __end_current_label_crit_section(tracer); in apparmor_ptrace_access_check() 124 struct aa_label *tracer, *tracee; in apparmor_ptrace_traceme() local 128 tracer = aa_get_task_label(parent); in apparmor_ptrace_traceme() 129 error = aa_may_ptrace(tracer, tracee, AA_PTRACE_TRACE); in apparmor_ptrace_traceme() 130 aa_put_label(tracer); in apparmor_ptrace_traceme()
|
D | domain.c | 62 struct task_struct *tracer; in may_change_ptraced_domain() local 67 tracer = ptrace_parent(current); in may_change_ptraced_domain() 68 if (tracer) in may_change_ptraced_domain() 70 tracerl = aa_get_task_label(tracer); in may_change_ptraced_domain() 73 if (!tracer || unconfined(tracerl)) in may_change_ptraced_domain()
|
/security/yama/ |
D | yama_lsm.c | 31 struct task_struct *tracer; member 141 static int yama_ptracer_add(struct task_struct *tracer, in yama_ptracer_add() argument 151 added->tracer = tracer; in yama_ptracer_add() 179 static void yama_ptracer_del(struct task_struct *tracer, in yama_ptracer_del() argument 190 (tracer && relation->tracer == tracer)) { in yama_ptracer_del() 247 struct task_struct *tracer; in yama_task_prctl() local 249 tracer = find_get_task_by_vpid(arg2); in yama_task_prctl() 250 if (!tracer) { in yama_task_prctl() 253 rc = yama_ptracer_add(tracer, myself); in yama_task_prctl() 254 put_task_struct(tracer); in yama_task_prctl() [all …]
|
/security/apparmor/include/ |
D | ipc.h | 32 int aa_may_ptrace(struct aa_label *tracer, struct aa_label *tracee,
|
/security/smack/ |
D | smack_lsm.c | 418 static int smk_ptrace_rule_check(struct task_struct *tracer, in smk_ptrace_rule_check() argument 430 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check() 435 tracercred = __task_cred(tracer); in smk_ptrace_rule_check() 925 struct task_struct *tracer; in smack_bprm_set_creds() local 929 tracer = ptrace_parent(current); in smack_bprm_set_creds() 930 if (likely(tracer != NULL)) in smack_bprm_set_creds() 931 rc = smk_ptrace_rule_check(tracer, in smack_bprm_set_creds()
|
/security/selinux/ |
D | hooks.c | 2279 struct task_struct *tracer; in ptrace_parent_sid() local 2282 tracer = ptrace_parent(current); in ptrace_parent_sid() 2283 if (tracer) in ptrace_parent_sid() 2284 sid = task_sid(tracer); in ptrace_parent_sid()
|