coredump: make core dump functionality optional
authorAlex Kelly <alex.page.kelly@gmail.com>
Fri, 5 Oct 2012 00:15:23 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:15 +0000 (03:05 +0900)
commit046d662f481830e652ac34cd112249adde16452a
treead13e968b4b02f9e2c35ce45f358477474df80d7
parentdb9aeca97a58563e1ab927d157c9b5048f233e73
coredump: make core dump functionality optional

Adds an expert Kconfig option, CONFIG_COREDUMP, which allows disabling of
core dump.  This saves approximately 2.6k in the compiled kernel, and
complements CONFIG_ELF_CORE, which now depends on it.

CONFIG_COREDUMP also disables coredump-related sysctls, except for
suid_dumpable and related functions, which are necessary for ptrace.

[akpm@linux-foundation.org: fix binfmt_aout.c build]
Signed-off-by: Alex Kelly <alex.page.kelly@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/Kconfig.binfmt
fs/Makefile
fs/binfmt_aout.c
include/linux/binfmts.h
init/Kconfig
kernel/sysctl.c