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>
Showing
- fs/proc/base.c 0 additions, 72 deletionsfs/proc/base.c
- include/linux/prctl.h 4 additions, 0 deletionsinclude/linux/prctl.h
- include/linux/seccomp.h 13 additions, 2 deletionsinclude/linux/seccomp.h
- kernel/seccomp.c 26 additions, 0 deletionskernel/seccomp.c
- kernel/sys.c 8 additions, 0 deletionskernel/sys.c
Loading
Please register or sign in to comment