linux/include/linux/lockd
Jeff Layton 898f944652 lockd: don't allow locking on reexported NFSv2/3
Since commit 9254c8ae9b ("nfsd: disallow file locking and delegations
for NFSv4 reexport"), file locking when reexporting an NFS mount via
NFSv4 is expressly prohibited by nfsd. Do the same in lockd:

Add a new  nlmsvc_file_cannot_lock() helper that will test whether file
locking is allowed for a given file, and return nlm_lck_denied_nolocks
if it isn't.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2025-11-20 16:29:35 -05:00
..
bind.h NFS: add a sysfs link to the lockd rpc_client 2023-06-19 15:06:07 -04:00
debug.h
lockd.h lockd: don't allow locking on reexported NFSv2/3 2025-11-20 16:29:35 -05:00
nlm.h
share.h
xdr.h lockd: Remove unused typedef 2024-11-18 20:23:03 -05:00
xdr4.h lockd: set file_lock start and end when decoding nlm4 testargs 2023-03-14 14:00:55 -04:00