Skip to content

Commit

Permalink
ptrace: Remove second setting of PT_SEIZED in ptrace_attach
Browse files Browse the repository at this point in the history
The code is totally redundant remove it.

Link: https://lkml.kernel.org/r/20220103213312.9144-6-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
  • Loading branch information
Eric W. Biederman committed Jan 8, 2022
1 parent 1b5a42d commit 6707d0f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,6 @@ static int ptrace_attach(struct task_struct *task, long request,
if (task->ptrace)
goto unlock_tasklist;

if (seize)
flags |= PT_SEIZED;
task->ptrace = flags;

ptrace_link(task, current);
Expand Down

0 comments on commit 6707d0f

Please sign in to comment.