]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: fix adding security options to statmount.mnt_opt
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 29 Jan 2025 15:12:53 +0000 (16:12 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 7 Feb 2025 09:27:26 +0000 (10:27 +0100)
commit5eb987105357cb7cfa7cf3b1e2f66d5c0977e412
treee3ee607243d90d638168d88beb8e0438803f6454
parentb06ddfeedcbe3c493215c85e43ac48dbb8769038
fs: fix adding security options to statmount.mnt_opt

Prepending security options was made conditional on sb->s_op->show_options,
but security options are independent of sb options.

Fixes: 056d33137bf9 ("fs: prepend statmount.mnt_opts string with security_sb_mnt_opts()")
Fixes: f9af549d1fd3 ("fs: export mount options via statmount()")
Cc: stable@vger.kernel.org # v6.11
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20250129151253.33241-1-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c