]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/coredump.c: log if a core dump is aborted due to changed file permissions
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 24 Aug 2021 00:00:02 +0000 (10:00 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:57 +0000 (09:34 +1000)
commitef6b0168142e30d20f0e8d10072b28c2332eaacd
tree41c025502e290bac3ea15e90c055819bdd8b7201
parent3e79eb1b76aac59777043c79533ba88d20667d4b
fs/coredump.c: log if a core dump is aborted due to changed file permissions

For obvious security reasons, a core dump is aborted if the filesystem
cannot preserve ownership or permissions of the dump file.

This affects filesystems like e.g.  vfat, but also something like a 9pfs
share in a Qemu test setup, running as a regular user, depending on the
security model used.  In those cases, the result is an empty core file and
a confused user.

To hopefully safe other people a lot of time figuring out the cause, this
patch adds a simple log message for those specific cases.

Link: https://lkml.kernel.org/r/20210701233151.102720-1-david.oberhollenzer@sigma-star.at
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/coredump.c