]> 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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 29 Nov 2025 22:22:48 +0000 (17:22 -0500)
commit8675c69816e4276b979ff475ee5fac4688f80125
tree36b99d453eb202e84a0220e5837586a25ba14155
parentd4a26d34f1946142f9d32e540490e4926ae9a46b
NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags

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