diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/apparmor/domain.c | 2 | ||||
-rw-r--r-- | security/selinux/hooks.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index c825c6e0b636..7312bf9f7afc 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c | |||
@@ -67,7 +67,7 @@ static int may_change_ptraced_domain(struct task_struct *task, | |||
67 | int error = 0; | 67 | int error = 0; |
68 | 68 | ||
69 | rcu_read_lock(); | 69 | rcu_read_lock(); |
70 | tracer = tracehook_tracer_task(task); | 70 | tracer = ptrace_parent(task); |
71 | if (tracer) { | 71 | if (tracer) { |
72 | /* released below */ | 72 | /* released below */ |
73 | cred = get_task_cred(tracer); | 73 | cred = get_task_cred(tracer); |
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 20219ef5439a..422515509f3d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2053,7 +2053,7 @@ static int selinux_bprm_set_creds(struct linux_binprm *bprm) | |||
2053 | u32 ptsid = 0; | 2053 | u32 ptsid = 0; |
2054 | 2054 | ||
2055 | rcu_read_lock(); | 2055 | rcu_read_lock(); |
2056 | tracer = tracehook_tracer_task(current); | 2056 | tracer = ptrace_parent(current); |
2057 | if (likely(tracer != NULL)) { | 2057 | if (likely(tracer != NULL)) { |
2058 | sec = __task_cred(tracer)->security; | 2058 | sec = __task_cred(tracer)->security; |
2059 | ptsid = sec->sid; | 2059 | ptsid = sec->sid; |
@@ -5319,7 +5319,7 @@ static int selinux_setprocattr(struct task_struct *p, | |||
5319 | Otherwise, leave SID unchanged and fail. */ | 5319 | Otherwise, leave SID unchanged and fail. */ |
5320 | ptsid = 0; | 5320 | ptsid = 0; |
5321 | task_lock(p); | 5321 | task_lock(p); |
5322 | tracer = tracehook_tracer_task(p); | 5322 | tracer = ptrace_parent(p); |
5323 | if (tracer) | 5323 | if (tracer) |
5324 | ptsid = task_sid(tracer); | 5324 | ptsid = task_sid(tracer); |
5325 | task_unlock(p); | 5325 | task_unlock(p); |