[PATCH] remove duplicated code from proc and ptrace
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 6 Sep 2005 22:18:24 +0000 (15:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:43 +0000 (16:57 -0700)
commitab8d11beb46f0bd0617e04205c01f5c1fe845b61
tree33b5aa5b63268b8f4d1428d74547fd351bb37113
parent5e21ccb136047e556acf0fdf227cab5db05c1c25
[PATCH] remove duplicated code from proc and ptrace

Extract common code used by ptrace_attach() and may_ptrace_attach()
into a separate function.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c
include/linux/ptrace.h
kernel/ptrace.c