Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20973
b: refs/heads/master
c: 341c2d8
h: refs/heads/master
i:
  20971: dedb3e1
v: v3
  • Loading branch information
Stephen Smalley authored and Linus Torvalds committed Mar 11, 2006
1 parent a597575 commit 0010938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4136cabff33d6d73b8daf2f2612670cc0296f844
refs/heads/master: 341c2d806b71cc3596afeb2d9bd26cd718e75202
2 changes: 1 addition & 1 deletion trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ static int selinux_ptrace(struct task_struct *parent, struct task_struct *child)

rc = task_has_perm(parent, child, PROCESS__PTRACE);
/* Save the SID of the tracing process for later use in apply_creds. */
if (!rc)
if (!(child->ptrace & PT_PTRACED) && !rc)
csec->ptrace_sid = psec->sid;
return rc;
}
Expand Down

0 comments on commit 0010938

Please sign in to comment.