freebsd-dev/sys/rpc
Rick Macklem 6a76d35cac krpc: Allow mountd/nfsd to optionally run in a jail
This patch modifies the kernel RPC so that it will allow
mountd/nfsd to run inside of a vnet jail.  Running mountd/nfsd
inside a vnet jail will be enabled via a new kernel build
option called VNET_NFSD, which will be implemented in future
commits.

Although I suspect cr_prison can be set from the credentials
of the current thread unconditionally, I #ifdef'd the code
VNET_NFSD and only did this for the jailed case mainly to
document that it is only needed for use in a jail.

The TLS support code has not yet been modified to work in
a jail.  That is planned as future development after the
basic VNET_NFSD support is in the kernel.

This patch should not result in any semantics change until
VNET_NFSD is implemented and used in a kernel configuration.

MFC after:	4 months
2022-12-18 12:40:48 -08:00
..
rpcsec_gss krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
rpcsec_tls nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
auth_none.c Adjust authnone_create() definition to avoid clang 15 warning 2022-07-25 00:40:13 +02:00
auth_unix.c rpc: Make function tables const 2021-08-14 11:26:12 -04:00
auth.h rpc: Delete AUTH_NEEDS_TLS(_MUTUAL_HOST) auth_stat values 2021-12-23 14:31:53 -08:00
authunix_prot.c
clnt_bck.c sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
clnt_dg.c rpc: Make function tables const 2021-08-14 11:26:12 -04:00
clnt_rc.c rpc: Make function tables const 2021-08-14 11:26:12 -04:00
clnt_stat.h
clnt_vc.c clnt_vc.c: Replace msleep() with pause() to avoid assert panic 2022-10-14 15:46:55 -07:00
clnt.h rpc: Make function tables const 2021-08-14 11:26:12 -04:00
getnetconfig.c
krpc.h
netconfig.h
nettype.h
pmap_prot.h
replay.c
replay.h
rpc_callmsg.c
rpc_com.h
rpc_generic.c protosw: refactor protosw and domain static declaration and load 2022-08-17 11:50:32 -07:00
rpc_msg.h
rpc_prot.c
rpc.h
rpcb_clnt.c Adjust local_rpcb() definition to avoid clang 15 warning 2022-07-25 00:40:12 +02:00
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h
rpcsec_gss.h
rpcsec_tls.h nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
svc_auth_unix.c
svc_auth.c krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
svc_auth.h
svc_dg.c krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
svc_generic.c
svc_vc.c nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
svc.c krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
svc.h nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
types.h
xdr.h