move seccomp from /proc to a prctl
authorAndrea Arcangeli <andrea@cpushare.com>
Mon, 16 Jul 2007 06:41:32 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:50 +0000 (09:05 -0700)
commit1d9d02feeee89e9132034d504c9a45eeaf618a3d
treea4324cce8acd77cace3b1d4cf3a1e61783707e5c
parentbe0ef957c9eed4ebae873ee3fbcfb9dfde486dec
move seccomp from /proc to a prctl

This reduces the memory footprint and it enforces that only the current
task can enable seccomp on itself (this is a requirement for a
strightforward [modulo preempt ;) ] TIF_NOTSC implementation).

Signed-off-by: Andrea Arcangeli <andrea@cpushare.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c
include/linux/prctl.h
include/linux/seccomp.h
kernel/seccomp.c
kernel/sys.c