]> git.karo-electronics.de Git - karo-tx-linux.git/commit
coredump: make core dump functionality optional
authorAlex Kelly <alex.page.kelly@gmail.com>
Thu, 13 Sep 2012 01:01:28 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 18 Sep 2012 06:04:47 +0000 (16:04 +1000)
commit8a4adbda8e78d09d4b1d534ac82058aed2e3dfae
tree7c1fe25190c902a0d7fd71d407aec9af96e29deb
parent142fc81eb98fdfbde7e35bfb21bee0d07fe3bf4b
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