]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc.d: Fix NFS server startup scripts to enable vnet prison use
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 12 Mar 2023 21:34:25 +0000 (14:34 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 22 May 2023 18:23:58 +0000 (11:23 -0700)
commit5d574146b0b299b64cf07fff8aee4182b7729709
treeb2bb38f290579975e855970805afaa79488d36fd
parent9bccb454ae9653105469568dda57b5ff9064f7d1
rc.d: Fix NFS server startup scripts to enable vnet prison use

Now that commit cbbb22031f9b is in main,
it is possible to run nfsd(8), nfsuserd(8), mountd(8),
gssd(8) and rpc.tlsservd(8) in an appropriately configured vnet
prison if the "allow.nfsd" option is specified in jail.conf.

This patch fixes the rc scripts for this.
Mostly just replaces the "nojail" KEYWORD with "nojailvnet",
but also avoids setting vfs.nfsd.srvmaxio in a prison, since it
must be set outside of the prisons and applies to all
nfsd(8) instances.

(cherry picked from commit 0bb08f21cc5c62d0e2dfcea500521fa801058dd3)
libexec/rc/rc.d/gssd
libexec/rc/rc.d/mountd
libexec/rc/rc.d/nfsd
libexec/rc/rc.d/nfsuserd
libexec/rc/rc.d/tlsservd