diff options
| author | Christian Brauner <[email protected]> | 2025-06-12 13:25:24 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-06-16 15:01:22 +0000 |
| commit | 7bbb05dbea38e56d9f6ac7ac1040f93b0808cbce (patch) | |
| tree | 7c1e4eab6e3266cdf33cf5a9e1132ede1f454ae0 /rust/helpers/helpers.c | |
| parent | coredump: rename do_coredump() to vfs_coredump() (diff) | |
| download | kernel-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
