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>
Showing
- fs/Kconfig.binfmt 8 additions, 0 deletionsfs/Kconfig.binfmt
- fs/Makefile 2 additions, 1 deletionfs/Makefile
- fs/binfmt_aout.c 27 additions, 25 deletionsfs/binfmt_aout.c
- include/linux/binfmts.h 4 additions, 0 deletionsinclude/linux/binfmts.h
- init/Kconfig 1 addition, 0 deletionsinit/Kconfig
- kernel/sysctl.c 11 additions, 1 deletionkernel/sysctl.c
Loading
Please register or sign in to comment