]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:48 +0000 (10:05 +0100)
commit7db0365ee609e70a500ac3833025c22cc7571f92
tree76fc6f7a35276e525c6e09193e72ac7245763f91
parent45439a8b1115522a071f227dda8bd52699dadfee
fs: fix adding security options to statmount.mnt_opt

commit 5eb987105357cb7cfa7cf3b1e2f66d5c0977e412 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c