Commit 6640556
committed
NFSD: Replace use of NFSD_MAY_LOCK in nfsd4_lock()
NFSv4 LOCK operations should not avoid the set of authorization
checks that apply to all other NFSv4 operations. Also, the
"no_auth_nlm" export option should apply only to NLM LOCK requests.
It's not necessary or sensible to apply it to NFSv4 LOCK operations.
Instead, set no permission bits when calling fh_verify(). Subsequent
stateid processing handles authorization checks.
Reported-by: NeilBrown <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent ed9887b commit 6640556
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7965 | 7965 | | |
7966 | 7966 | | |
7967 | 7967 | | |
7968 | | - | |
7969 | | - | |
7970 | | - | |
| 7968 | + | |
| 7969 | + | |
7971 | 7970 | | |
7972 | | - | |
7973 | 7971 | | |
7974 | 7972 | | |
7975 | 7973 | | |
| |||
0 commit comments