freebsd-dev/sys/fs/nfsserver
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
..
nfs_fha_new.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
nfs_fha_new.h Re-organize the NFS file handle affinity code for the NFS server. 2020-04-14 00:01:26 +00:00
nfs_nfsdcache.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
nfs_nfsdkrpc.c AST: rework 2022-08-02 21:11:09 +03:00
nfs_nfsdport.c nfsserver: Fix vrele() panic in nfsvno_open() 2023-01-12 16:48:53 -08:00
nfs_nfsdserv.c nfsserver: Fix vrele() panic in nfsvno_open() 2023-01-12 16:48:53 -08:00
nfs_nfsdsocket.c nfsd: Fix the NFSv4.2 pNFS MDS server for NFSERR_NOSPC via LayoutError 2021-11-08 15:58:00 -08:00
nfs_nfsdstate.c nfsserver: Fix handling of SP4_NONE 2023-01-15 14:07:40 -08:00
nfs_nfsdsubs.c nfsserver: Fix handling of SP4_NONE 2023-01-15 14:07:40 -08:00