linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] NFS: check FMODE_EXEC from open context mode
@ 2022-09-23  5:40 ChenXiaoSong
  2022-09-23  5:40 ` [PATCH v3 1/2] NFS: make sure open context mode have FMODE_EXEC when file open for exec ChenXiaoSong
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ChenXiaoSong @ 2022-09-23  5:40 UTC (permalink / raw)
  To: trond.myklebust, anna
  Cc: linux-nfs, linux-kernel, chenxiaosong2, yi.zhang, zhangxiaoxu5

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(-)

-- 
v1->v2: use FMODE_EXEC instead of __FMODE_EXEC in nfs4_opendata_access to
	fix compiler warning
v2->v3: update cover letter message

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-16 11:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-23  5:40 [PATCH v3 0/2] NFS: check FMODE_EXEC from open context mode ChenXiaoSong
2022-09-23  5:40 ` [PATCH v3 1/2] NFS: make sure open context mode have FMODE_EXEC when file open for exec ChenXiaoSong
2022-09-23  5:40 ` [PATCH v3 2/2] NFSv4: check FMODE_EXEC from open context mode in nfs4_opendata_access() ChenXiaoSong
2022-10-10  1:18 ` [PATCH v3 0/2] NFS: check FMODE_EXEC from open context mode ChenXiaoSong
2022-11-16 11:45 ` ChenXiaoSong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).