Skip to content

NFSv4: fix corner cases with ACCESS in OPEN

Weston Andros Adamson linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2NFSv4: don't check MAY_WRITE access bit in OPENfs/nfs/nfs4proc.c+3 -30 replies
2/2NFSv4: don't put ACCESS in OPEN compound if O_EXCLfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c include/linux/nfs_xdr.h+18 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] NFSv4: fix corner cases with ACCESS in OPEN

My recent "ACCESS in OPEN" patch that fixed permissions due to OPEN operations having no way to differentiate between READ and EXEC had several issues:

- when files are opened O_EXCL, ACCESS will always return permission denied for all bits until close is called.

- POSIX allows processes to write to files without write permissions if that process created the file