Skip to content

NFS: check FMODE_EXEC from open context mode

ChenXiaoSong linux-nfs lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2NFS: make sure open context mode have FMODE_EXEC when file open for execfs/nfs/inode.c fs/nfs/nfs4file.c+6 -90 replies
2/2NFSv4: check FMODE_EXEC from open context mode in nfs4_opendata_access()fs/nfs/nfs4proc.c+5 -110 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] NFS: check FMODE_EXEC from open context mode

Currently, we check FMODE_EXEC from file f_flags, and check FMODE_READ or FMODE_WRITE from open context mode.

After converting file f_flags to open context mode by flags_to_mode(), we can check all mode from open context mode.

ChenXiaoSong (2):
NFS: make sure open context mode have FMODE_EXEC when file open for
exec
NFSv4: check FMODE_EXEC from open context mode in
nfs4_opendata_access()

 fs/nfs/inode.c    |  3 ++-
 fs/nfs/nfs4file.c | 12 ++++--------
 fs/nfs/nfs4proc.c | 16 +++++-----------
 3 files changed, 11 insertions(+), 20 deletions(-)
Signature · 3 lines
v1->v2: use FMODE_EXEC instead of __FMODE_EXEC in nfs4_opendata_access to
	fix compiler warning
v2->v3: update cover letter message