freebsd-dev/sys/fs/nfs
Rick Macklem ed03776ca7 nfsd: Enable the NFSD_VNET vnet front end macros
Several commits have added front end macros for the vnet
macros to the NFS server, krpc and kgssapi.  These macros
are now null, but this patch changes them to front end
the vnet macros.

With this commit, many global variables in the code become
vnet'd, so that nfsd(8), nfsuserd(8), rpc.tlsservd(8) and
gssd(8) can run in a vnet prison, once enabled.
To run the NFS server in a vnet prison still requires a
couple of patches (in D37741 and D38371) that allow mountd(8)
to export file systems from within a vnet prison.  Once
these are committed to main, a small patch to kern_jail.c
allowing "allow.nfsd" without VNET_NFSD defined will allow
the NFS server to run in a vnet prison.

One area that still needs to be settled is cleanup when a
prison is removed.  Without this, everything should work
except there will be a leak of malloc'd data and mutex locks
when a vnet prison is removed.

MFC after:	3 months
2023-02-18 14:59:36 -08:00
..
nfs_commonacl.c nfsd: Do not accept audit/alarm ACEs for the NFSv4 server 2022-01-11 09:40:07 -08:00
nfs_commonkrpc.c nfscommon: Revert use of nfsstatsv1_p in nfs_commonkrpc.c 2023-02-16 17:44:19 -08:00
nfs_commonport.c nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
nfs_commonsubs.c nfsd: Continue adding macros so nfsd can run in a vnet prison 2023-02-14 13:33:35 -08:00
nfs_var.h nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00
nfs.h nfsd: Add a sanity check for Owner/OwnerGroup string length 2022-05-04 13:58:22 -07:00
nfscl.h nfscl: Add a cred argument to nfscl_reqstart() 2022-07-08 16:58:06 -07:00
nfsclstate.h nfscl: Add optional support for slots marked bad 2022-07-09 14:43:16 -07:00
nfsdport.h nfsd: Continue adding macros so nfsd can run in a vnet prison 2023-02-12 13:52:13 -08:00
nfskpiport.h nfscommon: Clean up the code by removing the vnode_vtype() macro 2022-06-24 13:56:35 -07:00
nfsm_subs.h nfscl: Clean up the code by removing #if(n)def APPLE 2022-06-18 13:43:02 -07:00
nfsport.h nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
nfsproto.h Unbreak the build: Also define NFSV42_OLDNPROCS here. 2022-04-05 11:54:20 -06:00
nfsrvcache.h
nfsrvstate.h nfsd: Continue adding macros so nfsd can run in a vnet prison 2023-02-12 13:52:13 -08:00
nfsv4_errstr.h
rpcv2.h
xdr_subs.h nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00