diff options
author | 2022-02-13 22:25:20 +0300 | |
---|---|---|
committer | 2022-03-01 16:16:27 -0800 | |
commit | d65bc29be0ae4ca2368df25dc6f6247aefb57f07 (patch) | |
tree | 94d129acb51ec8c2b9431b521944c8a600db9b76 /include/linux/binfmts.h | |
parent | selftests/exec: Test for empty string on NULL argv (diff) | |
download | wireguard-linux-d65bc29be0ae4ca2368df25dc6f6247aefb57f07.tar.xz wireguard-linux-d65bc29be0ae4ca2368df25dc6f6247aefb57f07.zip |
binfmt: move more stuff undef CONFIG_COREDUMP
struct linux_binfmt::core_dump and struct min_coredump::min_coredump
are used under CONFIG_COREDUMP only. Shrink those embedded configs
a bit.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/YglbIFyN+OtwVyjW@localhost.localdomain
Diffstat (limited to 'include/linux/binfmts.h')
-rw-r--r-- | include/linux/binfmts.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index 049cf9421d83..5d651c219c99 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h @@ -98,8 +98,10 @@ struct linux_binfmt { struct module *module; int (*load_binary)(struct linux_binprm *); int (*load_shlib)(struct file *); +#ifdef CONFIG_COREDUMP int (*core_dump)(struct coredump_params *cprm); unsigned long min_coredump; /* minimal dump size */ +#endif } __randomize_layout; extern void __register_binfmt(struct linux_binfmt *fmt, int insert); |