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: stable@vger.kernel.org Signed-off-by: Olga Kornievskaia <okorniev@redhat.com> Reviewed-by: NeilBrown <neil@brown.name> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4c4d66e commit 996b879

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)