diff options
| author | Tejun Heo <[email protected]> | 2011-06-17 14:50:40 +0000 |
|---|---|---|
| committer | Oleg Nesterov <[email protected]> | 2011-06-22 17:26:29 +0000 |
| commit | 06d984737bac0545fe20bb5447ee488b95adb531 (patch) | |
| tree | b8d89d21a53c28a025dd42598bc3406e25db5ba8 /security/selinux/hooks.c | |
| parent | ptrace: kill clone/exec tracehooks (diff) | |
| download | kernel-06d984737bac0545fe20bb5447ee488b95adb531.tar.gz kernel-06d984737bac0545fe20bb5447ee488b95adb531.zip | |
ptrace: s/tracehook_tracer_task()/ptrace_parent()/
tracehook.h is on the way out. Rename tracehook_tracer_task() to
ptrace_parent() and move it from tracehook.h to ptrace.h.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: John Johansen <[email protected]>
Cc: Stephen Smalley <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index a0d38459d650..fc07d18ed6fc 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2048,7 +2048,7 @@ static int selinux_bprm_set_creds(struct linux_binprm *bprm) u32 ptsid = 0; rcu_read_lock(); - tracer = tracehook_tracer_task(current); + tracer = ptrace_parent(current); if (likely(tracer != NULL)) { sec = __task_cred(tracer)->security; ptsid = sec->sid; @@ -5314,7 +5314,7 @@ static int selinux_setprocattr(struct task_struct *p, Otherwise, leave SID unchanged and fail. */ ptsid = 0; task_lock(p); - tracer = tracehook_tracer_task(p); + tracer = ptrace_parent(p); if (tracer) ptsid = task_sid(tracer); task_unlock(p); |
