lkml.org 
[lkml]   [2022]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] NFS: check FMODE_EXEC from open context mode
Date
Currently, we check FMODE_EXEC from file f_flags, and check FMODE_READ or
FMODE_WRITE 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(-)

--
v1->v2: use FMODE_EXEC instead of __FMODE_EXEC in nfs4_opendata_access to
fix compiler warning

2.31.1

\
 
 \ /
  Last update: 2022-09-23 06:36    [W:0.027 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site