summaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2021-06-24 00:44:32 +0300
committerEric W. Biederman <ebiederm@xmission.com>2021-08-26 18:30:12 +0300
commit307d522f5eb86cd6ac8c905f5b0577dedac54ec5 (patch)
tree826a8de8128133767b650120882b4edea7ee728b /fs/buffer.c
parenta3616a3c02722d1edb95acc7fceade242f6553ba (diff)
downloadlinux-307d522f5eb86cd6ac8c905f5b0577dedac54ec5.tar.xz
signal/seccomp: Refactor seccomp signal and coredump generation
Factor out force_sig_seccomp from the seccomp signal generation and place it in kernel/signal.c. The function force_sig_seccomp takes a parameter force_coredump to indicate that the sigaction field should be reset to SIGDFL so that a coredump will be generated when the signal is delivered. force_sig_seccomp is then used to replace both seccomp_send_sigsys and seccomp_init_siginfo. force_sig_info_to_task gains an extra parameter to force using the default signal action. With this change seccomp is no longer a special case and there becomes exactly one place do_coredump is called from. Further it no longer becomes necessary for __seccomp_filter to call do_group_exit. Acked-by: Kees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/87r1gr6qc4.fsf_-_@disp2133 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions