freebsd-dev/sys/fs
Rick Macklem 5a0050e68a nfsserver: Fix handling of SP4_NONE
For NFSv4.1/4.2, when the client specifies SP4_NONE for
state protection in the ExchangeID operation arguments,
the server MUST allow the state management operations for
any user credentials.  (I misread the RFC and thought that
SP4_NONE meant "at the server's discression" and not MUST
be allowed.)

This means that the "sec=XXX" field of the "V4:" exports(5)
line only applies to NFSv4.0.

This patch fixes the server to always allow state management
operations for SP4_NONE, which is the only state management
option currently supported. (I have patches that add support
for SP4_MACH_CRED to the server. These will be in a future commit.)

In practice, this bug does not seem to have caused
interoperability problems.

MFC after:	2 weeks
2023-01-15 14:07:40 -08:00
..
autofs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
cd9660 Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
cuse cuse(3): Cosmetic change about testing boolean values. 2022-10-04 13:51:06 +02:00
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
ext2fs Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
fdescfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
fifofs fifos: delegate unhandled kqueue filters to underlying filesystem 2021-10-12 02:43:07 -05:00
fuse vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
mntfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
msdosfs Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
nfs nfsserver: Fix vrele() panic in nfsvno_open() 2023-01-12 16:48:53 -08:00
nfsclient nfscl: Improve NFSv4 error message for NFSERR_WRONGSEC 2023-01-11 13:28:44 -08:00
nfsserver nfsserver: Fix handling of SP4_NONE 2023-01-15 14:07:40 -08:00
nullfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
procfs vm_pager: Remove references to KVME_TYPE_DEFAULT in the kernel 2022-07-17 07:09:48 -04:00
pseudofs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00
smbfs Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
tmpfs Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
udf Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
unionfs vfs: add the concept of vnode state transitions 2022-12-26 17:35:12 +00:00