]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: Fix the setting of capabilities when automounting a new filesystem
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 3 Aug 2025 21:31:59 +0000 (14:31 -0700)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Aug 2025 16:16:45 +0000 (09:16 -0700)
commitb01f21cacde9f2878492cf318fee61bf4ccad323
treec89088ebfc322d2796c0a2a19b158bfe56eed139
parentcc5d59081fa26506d02de2127ab822f40d88bc5a
NFS: Fix the setting of capabilities when automounting a new filesystem

Capabilities cannot be inherited when we cross into a new filesystem.
They need to be reset to the minimal defaults, and then probed for
again.

Fixes: 54ceac451598 ("NFS: Share NFS superblocks per-protocol per-server per-FSID")
Cc: stable@vger.kernel.org
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/client.c
fs/nfs/internal.h
fs/nfs/nfs4client.c
fs/nfs/nfs4proc.c