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)
committerChristian Brauner <brauner@kernel.org>
Thu, 9 Jan 2025 15:58:51 +0000 (16:58 +0100)
commit056d33137bf9364456ee70aa265ccbb948daee49
tree353732425ba8a8dc46ae7e78f42a4aa49e78d74c
parentc6640d46dc5a31ee7363545530836c10b9ddb9de
fs: prepend statmount.mnt_opts string with security_sb_mnt_opts()

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>
fs/namespace.c