Skip to content

Commit 996b879

Browse files
Olga Kornievskaiagregkh
authored andcommitted
nfsd: fix access checking for NLM under XPRTSEC policies
commit 0813c5f upstream. When an export policy with xprtsec policy is set with "tls" and/or "mtls", but an NFS client is doing a v3 xprtsec=tls mount, then NLM locking calls fail with an error because there is currently no support for NLM with TLS. Until such support is added, allow NLM calls under TLS-secured policy. Fixes: 4cc9b9f ("nfsd: refine and rename NFSD_MAY_LOCK") Cc: [email protected] Signed-off-by: Olga Kornievskaia <[email protected]> Reviewed-by: NeilBrown <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4c4d66e commit 996b879

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfsd/export.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,8 @@ __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp,
11151115
test_bit(XPT_PEER_AUTH, &xprt->xpt_flags))
11161116
goto ok;
11171117
}
1118-
goto denied;
1118+
if (!may_bypass_gss)
1119+
goto denied;
11191120

11201121
ok:
11211122
/* legacy gss-only clients are always OK: */

0 commit comments

Comments
 (0)