1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Jeff Layton 898f944652 lockd: don't allow locking on reexported NFSv2/3
Since commit 9254c8ae9b81 ("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
..
2025-10-01 17:32:51 -07:00
2025-10-02 15:17:01 -07:00
2025-10-03 17:23:18 +02:00
2025-10-06 10:41:03 -07:00
2025-10-02 18:44:54 -07:00
2025-10-02 15:17:01 -07:00
2025-10-04 16:07:08 -07:00
2025-10-10 10:37:13 -07:00
2025-09-29 11:20:29 -07:00
2025-09-30 17:58:11 -07:00
2025-09-29 17:48:27 -07:00
2025-11-14 08:56:49 -08:00
2025-10-03 10:51:44 -07:00
2025-10-06 13:22:21 -07:00
2025-10-02 09:56:23 -07:00
2025-09-29 11:20:29 -07:00
2025-10-18 10:25:43 +02:00
2025-10-04 11:28:45 -07:00
2025-09-29 11:20:29 -07:00
2025-09-30 16:00:29 -07:00
2025-10-03 16:32:36 -07:00
2025-10-06 13:22:21 -07:00
2025-09-29 11:20:29 -07:00
2025-10-01 07:55:42 -05:00
2025-10-03 14:20:40 -07:00
2025-10-03 10:24:14 -07:00
2025-09-29 11:20:29 -07:00
2025-10-01 15:11:00 -07:00
2025-10-07 08:40:15 -07:00
2025-09-30 15:06:33 -07:00
2025-10-01 11:34:12 -07:00
2025-09-29 11:20:29 -07:00
2025-09-29 11:20:29 -07:00
2025-10-01 07:24:55 -04:00