]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
coredump: make core dump functionality optional
authorAlex Kelly <alex.page.kelly@gmail.com>
Fri, 28 Sep 2012 00:22:12 +0000 (10:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:04:01 +0000 (15:04 +1000)
commit6fbb78d32a3df51895ab7558b2456850fcc21ecf
tree31626a56489040f45b23f55c7bc5fef14f938733
parenta93aabdea3c2a882ee9c45dbd4100835b13f1a41
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