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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 29 Nov 2025 22:23:03 +0000 (17:23 -0500)
commita2a8fc27dd668e7562b5326b5ed2f1604cb1e2e9
tree271c86cf15fd7c6879eff2a5f1a9b29fa00ba956
parent2b092175f5e301cdaa935093edfef2be9defb6df
NFS: Fix up the automount fs_context to use the correct cred

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