aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2025-06-12 13:25:24 +0000
committerChristian Brauner <[email protected]>2025-06-16 15:01:22 +0000
commit7bbb05dbea38e56d9f6ac7ac1040f93b0808cbce (patch)
tree7c1e4eab6e3266cdf33cf5a9e1132ede1f454ae0 /rust/helpers/helpers.c
parentcoredump: rename do_coredump() to vfs_coredump() (diff)
downloadkernel-7bbb05dbea38e56d9f6ac7ac1040f93b0808cbce.tar.gz
kernel-7bbb05dbea38e56d9f6ac7ac1040f93b0808cbce.zip
coredump: split file coredumping into coredump_file()
* Move that whole mess into a separate helper instead of having all that hanging around in vfs_coredump() directly. * Stop using that need_suid_safe variable and add an inline helper that clearly communicates what's going on everywhere consistently. The mm flag snapshot is stable and can't change so nothing's gained with that boolean. * Only setup cprm->file once everything else succeeded, using RAII for the coredump file before. That allows to don't care to what goto label we jump in vfs_coredump(). Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions