mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 00:58:39 +02:00
nfsd: fix access checking for NLM under XPRTSEC policies
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: 4cc9b9f2bf ("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>
This commit is contained in:
parent
c447d2ac98
commit
0813c5f012
1 changed files with 2 additions and 1 deletions
|
|
@ -1124,6 +1124,7 @@ __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp,
|
||||||
test_bit(XPT_PEER_AUTH, &xprt->xpt_flags))
|
test_bit(XPT_PEER_AUTH, &xprt->xpt_flags))
|
||||||
goto ok;
|
goto ok;
|
||||||
}
|
}
|
||||||
|
if (!may_bypass_gss)
|
||||||
goto denied;
|
goto denied;
|
||||||
|
|
||||||
ok:
|
ok:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue