]> www.infradead.org Git - users/hch/misc.git/commit
nfsd: fix access checking for NLM under XPRTSEC policies
authorOlga Kornievskaia <okorniev@redhat.com>
Sat, 22 Mar 2025 00:13:04 +0000 (20:13 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 11 May 2025 23:48:25 +0000 (19:48 -0400)
commit0813c5f01249dbc32ccbc68d27a24fde5bf2901c
tree8f237cd47566a1b71376eaa2dece34dfadc4f037
parentc447d2ac987bb5e155ed817a61db29978e684339
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: 4cc9b9f2bf4d ("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>
fs/nfsd/export.c