]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
coredump: make core dump functionality optional
authorAlex Kelly <alex.page.kelly@gmail.com>
Wed, 26 Sep 2012 01:34:51 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:28:43 +0000 (17:28 +1000)
commit8e444dde46069bd3824172a8c1b7207143afaa86
treeaf6be07b947cbc53ed2d16dabcbfb433b5eed7e8
parent1b5c6af65edcf7360ea62dd96582aaeeccd01b0f
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.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/Kconfig.binfmt
fs/Makefile
include/linux/binfmts.h
init/Kconfig
kernel/sysctl.c