]> git.karo-electronics.de Git - karo-tx-linux.git/commit
coredump: make core dump functionality optional
authorAlex Kelly <alex.page.kelly@gmail.com>
Fri, 7 Sep 2012 00:25:05 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:35 +0000 (15:36 +1000)
commit3964276c74c4451474962b7703da42e232888c9c
tree4fcdf95721b128fc2a20ae4e63c9f9cee7fef0c5
parent19114b36c99130d61616681c1b7f023f29d946cb
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