]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: prepend statmount.mnt_opts string with security_sb_mnt_opts()
authorJeff Layton <jlayton@kernel.org>
Fri, 15 Nov 2024 15:35:53 +0000 (10:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:48 +0000 (10:05 +0100)
commit45439a8b1115522a071f227dda8bd52699dadfee
tree06e1f409a44dc14ecaafba7e8c4e04bbe1a542a5
parentbdea9e692de57d6c42ecd62061d2e98fb968159c
fs: prepend statmount.mnt_opts string with security_sb_mnt_opts()

commit 056d33137bf9364456ee70aa265ccbb948daee49 upstream.

Currently these mount options aren't accessible via statmount().

The read handler for /proc/#/mountinfo calls security_sb_show_options()
to emit the security options after emitting superblock flag options, but
before calling sb->s_op->show_options.

Have statmount_mnt_opts() call security_sb_show_options() before
calling ->show_options.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20241115-statmount-v2-2-cd29aeff9cbb@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Stable-dep-of: 5eb987105357 ("fs: fix adding security options to statmount.mnt_opt")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c