Home
last modified time | relevance | path

Searched refs:tracer (Results 1 – 6 of 6) sorted by relevance

/security/yama/
Dyama_lsm.c31 struct task_struct *tracer; member
74 static int yama_ptracer_add(struct task_struct *tracer, in yama_ptracer_add() argument
84 added->tracer = tracer; in yama_ptracer_add()
112 static void yama_ptracer_del(struct task_struct *tracer, in yama_ptracer_del() argument
123 (tracer && relation->tracer == tracer)) { in yama_ptracer_del()
180 struct task_struct *tracer; in yama_task_prctl() local
183 tracer = find_task_by_vpid(arg2); in yama_task_prctl()
184 if (tracer) in yama_task_prctl()
185 get_task_struct(tracer); in yama_task_prctl()
190 if (tracer) { in yama_task_prctl()
[all …]
/security/apparmor/
Dipc.c63 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee, in aa_may_ptrace() argument
71 if (unconfined(tracer) || tracer == tracee) in aa_may_ptrace()
74 return aa_capable(tracer, CAP_SYS_PTRACE, 1); in aa_may_ptrace()
85 int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee, in aa_ptrace() argument
97 struct aa_profile *tracer_p = aa_get_task_profile(tracer); in aa_ptrace()
Ddomain.c62 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 tracerp = aa_get_task_profile(tracer); in may_change_ptraced_domain()
73 if (!tracer || unconfined(tracerp)) in may_change_ptraced_domain()
/security/apparmor/include/
Dipc.h22 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee,
25 int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee,
/security/smack/
Dsmack_lsm.c418 static int smk_ptrace_rule_check(struct task_struct *tracer, in smk_ptrace_rule_check() argument
429 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check()
434 tsp = __task_cred(tracer)->security; in smk_ptrace_rule_check()
921 struct task_struct *tracer; in smack_bprm_set_creds() local
925 tracer = ptrace_parent(current); in smack_bprm_set_creds()
926 if (likely(tracer != NULL)) in smack_bprm_set_creds()
927 rc = smk_ptrace_rule_check(tracer, in smack_bprm_set_creds()
/security/selinux/
Dhooks.c2294 struct task_struct *tracer; in selinux_bprm_set_creds() local
2299 tracer = ptrace_parent(current); in selinux_bprm_set_creds()
2300 if (likely(tracer != NULL)) { in selinux_bprm_set_creds()
2301 sec = __task_cred(tracer)->security; in selinux_bprm_set_creds()
5680 struct task_struct *tracer; in selinux_setprocattr() local
5789 tracer = ptrace_parent(p); in selinux_setprocattr()
5790 if (tracer) in selinux_setprocattr()
5791 ptsid = task_sid(tracer); in selinux_setprocattr()
5794 if (tracer) { in selinux_setprocattr()