]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fscontext: add custom-prefix log helpers
authorAleksa Sarai <cyphar@cyphar.com>
Wed, 6 Aug 2025 06:07:05 +0000 (16:07 +1000)
committerChristian Brauner <brauner@kernel.org>
Mon, 11 Aug 2025 12:52:40 +0000 (14:52 +0200)
commitad7fe23b4b0dc0c26187df92a5649948ef7049fa
treebcbaeca25a681223ab52b1ecd40e755d9703b2f3
parent5e6de2a72ef4af32a45b3f301faee0208e2b98f0
fscontext: add custom-prefix log helpers

Sometimes, errors associated with an fscontext come from the VFS or
otherwise outside of the filesystem driver itself. However, the default
logging of errorfc will always prefix the message with the filesystem
name.

So, add some *fcp() wrappers that allow for custom prefixes to be used
when emitting information to the fscontext log.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Link: https://lore.kernel.org/20250806-errorfc-mount-too-revealing-v2-1-534b9b4d45bb@cyphar.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fs_context.h