]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix up the automount fs_context to use the correct cred
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 28 Nov 2025 23:56:46 +0000 (18:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:17 +0000 (16:35 +0100)
commitab775cc784f698ced8506baf7003e73fb3935c6c
tree430342014bcd763f26e8116b139147079796cddd
parent8e73e0ee4530a3569e5285a06ac3b0f8d825c72e
NFS: Fix up the automount fs_context to use the correct cred

[ Upstream commit a2a8fc27dd668e7562b5326b5ed2f1604cb1e2e9 ]

When automounting, the fs_context should be fixed up to use the cred
from the parent filesystem, since the operation is just extending the
namespace. Authorisation to enter that namespace will already have been
provided by the preceding lookup.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/namespace.c