]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 28 Nov 2025 19:22:44 +0000 (14:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:38 +0000 (13:09 +0100)
commitba1495aefd22fcf0746a2a3025c95d766d7cde4d
tree08180ce757adbe84f2790e64d9796649aceb6a33
parent1b44528bf4a16852aa8da14785e378bc3f3dbc99
NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags

[ Upstream commit 8675c69816e4276b979ff475ee5fac4688f80125 ]

When a filesystem is being automounted, it needs to preserve the
user-set superblock mount options, such as the "ro" flag.

Reported-by: Li Lingfeng <lilingfeng3@huawei.com>
Link: https://lore.kernel.org/all/20240604112636.236517-3-lilingfeng@huaweicloud.com/
Fixes: f2aedb713c28 ("NFS: Add fs_context support.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/namespace.c
fs/nfs/super.c