selinux: consolidate the ptrace parent lookup code
authorPaul Moore <paul@paul-moore.com>
Thu, 31 Mar 2016 01:41:21 +0000 (21:41 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 5 Apr 2016 20:11:02 +0000 (16:11 -0400)
commit0c6181cb301fd04a5800920ba423be753b0a4a01
tree00793642aee856c2e744f2be670bd4c0cc178d67
parent4b57d6bcd94034e2eb168bdec2474e3b2b848e44
selinux: consolidate the ptrace parent lookup code

We lookup the tracing parent in two places, using effectively the
same code, let's consolidate it.

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c