mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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. [[email protected]: fix binfmt_aout.c build] Signed-off-by: Alex Kelly <[email protected]> Reviewed-by: Josh Triplett <[email protected]> Acked-by: Serge Hallyn <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
db9aeca97a
commit
046d662f48
6 changed files with 53 additions and 27 deletions
|
|
@ -1199,6 +1199,7 @@ config BUG
|
|||
Just say Y.
|
||||
|
||||
config ELF_CORE
|
||||
depends on COREDUMP
|
||||
default y
|
||||
bool "Enable ELF core dumps" if EXPERT
|
||||
help
|
||||
|
|
|
|||
Loading…
Reference in a new issue