nfsd: enforce search permission on directory delegations
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesIn review
- v22 patches 2 repliesSuperseded
Changes in v3 from the cover letter
- Only map nfserr_acces to GDD4_UNAVAIL in patch 1/2 (Chuck Lever).
- Add Jeff Layton's Reviewed-by on patch 1/2.
- v2: https://lore.kernel.org/linux-nfs/[email protected]/
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nfsd: return GDD4_UNAVAIL on nfserr_acces in nfsd4_get_dir_delegation()fs/ | +4 | 1 reply | |
| 2/2 | nfsd: require NFSD_MAY_EXEC when acquiring directory delegationsfs/ | +6 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jeff Layton |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] nfsd: enforce search permission on directory delegations
Clients can currently acquire NFSv4.1 directory delegations on directories they can read but not search, receiving child filehandles in CB_NOTIFY despite LOOKUP failing with NFS4ERR_ACCESS.
Patch 1 declines directory delegations with GDD4_UNAVAIL on access denial so compound PUTFH + GET_DIR_DELEGATION + GETATTR requests on mode 0711 directories continue to succeed, while surfacing non-directory and stale-filehandle errors directly. Patch 2 enforces search permission and limits the owner permission override to regular files.
Changes in v3:
- Only map nfserr_acces to GDD4_UNAVAIL in patch 1/2 (Chuck Lever).
- Add Jeff Layton's Reviewed-by on patch 1/2.
- v2: https://lore.kernel.org/linux-nfs/[email protected]/
Found with an AI-assisted code review tool (ARTIST) and verified in QEMU/KVM over NFSv4.1 across 0711, 0744, 0400, regular files, and stale filehandles.
Dominik Maier (2):
nfsd: return GDD4_UNAVAIL on nfserr_acces in
nfsd4_get_dir_delegation()
nfsd: require NFSD_MAY_EXEC when acquiring directory delegations
fs/nfsd/filecache.c | 10 ++++++---- fs/nfsd/nfs4proc.c | 4 ++++ 2 files changed, 10 insertions(+), 4 deletions(-)
base-commit: 6104bc60edc0d9c6bbc509ec9df4b8c26b1d31a3
Signature · 1 line
2.56.1.911.g883d8bcb20-goog