NFSv4: Handle open for execute correctly
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 27 Jun 2019 10:30:48 +0000 (06:30 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:25 +0000 (14:54 -0400)
commit1bf85d8c98756421e29b9990469ee63bb0bc87cc
treec27a2436eba998457011c275881a3286a4b7d7ac
parentbcc0e65f47def010d8d1c4cf09bdc698fe061b77
NFSv4: Handle open for execute correctly

When mapping the NFSv4 context to an open mode and access mode,
we need to treat the FMODE_EXEC flag differently. For the open
mode, FMODE_EXEC means we need read share access. For the access
mode checking, we need to verify that the user actually has
execute access.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c