From nobody Mon May 22 18:28:35 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQ5Yb4Mqfz4CJBX; Mon, 22 May 2023 18:28:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQ5Yb3pvfz3wj0; Mon, 22 May 2023 18:28:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684780115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HAocnlrMNEVI2zfhpz5AdUFs7g/TrZThJbG63K8V5Yg=; b=SG6g2PWUmSnHbBTxzbJ9KRT0XenVQ16Pki1APlWAQT3fBOms2FP8K8Gf415QLikNe7IDmL JAqvCdjUHxExUp7CZ9gwJ6B3j+rN6v3gOcyHTrIFSKSIpnZ1zSKE0tikovPymcMZ0ecoA4 Hazgd0PiA1jv8oZKYFUHyj5mmCI9sU+WEo9MdSMxzWbaWSD/meuSm3rRnem3XRKVDqDKdA wbWlS4FQjuA/Mz0SpsUdVXHoE35eWUFlYR1Yd4uimIBeDPLCQuc9jSkKroTbhCQFznKSrM nV09kusU88h1N2orKZdG36p/ELkRKXU0LrmlUg3c3bhyrbeI7h6eQhUThptQlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684780115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HAocnlrMNEVI2zfhpz5AdUFs7g/TrZThJbG63K8V5Yg=; b=YpzN4EjjidXRglsYr+m+MHa8rT3wjs17YLZJCf2C4Tk38xnOiQiJIlTyd+ek5xqLDBv7Bn 0Or42+7a6iUgkubn5cNHdgFnohb42PMm1zPSwX7NauXueUYzFzuptwUgEKjfWTjj/JWKX5 /RtdjtWAnWgOPulrCPq0cCUBjgK/EtHHpI6awYu0PXdJm3cUemaFuzOgSW+uIavsVcAlVX rPFXEr97iCJu8mlvbhyVZ/DPnkjg/0oTP7IFimyUBR9cqokOUhDbAJ+oLSQsoxeTF2Nx/J q9oYVpq2H6uvO8hXBFsw7LLQerj5hgJ4gfon0HjeojgHnX4QHjdp2xZ/tcfFZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684780115; a=rsa-sha256; cv=none; b=Mxjbn8Ne0Jta6/kPrNI75VNJyNCR7Jygmtc0sJrjn6l2G50eecNlFdf3fN7n0NW/umdLDY Qa4Bs1HahqpklZfRQglVhDsyJd8V/4spRDUVwkWPbxBT7+LE0RE4FI+ematTMt5htkArEn 6WnZWN+8rL+CKx2Vk/9s5MlL6GM6QGwdDEuaarrAbvztaR/P0b5RXqJdBkAyrPZp0bMO8b W9uj73BYNcSSTTCOcLUIY5WV/Qhc+TpwpNFa6JfY2Z2w5c0JSTH+nhN/A8GvCZs6nc8RcZ cmWiVttiFv+m4GNGlmikb4T3B7j+iQxAHBzv/9bYECo/pSLHpLNREIubtf3cUg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QQ5Yb2wNlzSjT; Mon, 22 May 2023 18:28:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34MISZwV038957; Mon, 22 May 2023 18:28:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34MISZ7c038956; Mon, 22 May 2023 18:28:35 GMT (envelope-from git) Date: Mon, 22 May 2023 18:28:35 GMT Message-Id: <202305221828.34MISZ7c038956@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: e608f0713da4 - stable/13 - jail.8: Update the allow.nfsd section List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e608f0713da49a3ef30fd52b56bdb709fc00f77b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=e608f0713da49a3ef30fd52b56bdb709fc00f77b commit e608f0713da49a3ef30fd52b56bdb709fc00f77b Author: Rick Macklem AuthorDate: 2023-03-14 22:28:02 +0000 Commit: Rick Macklem CommitDate: 2023-05-22 18:27:45 +0000 jail.8: Update the allow.nfsd section This patch updates the information for "allow.nfsd" and adds configuration information. This is a content change. (cherry picked from commit c0f94fee0bdddcc07f216f9723544f78ace5155a) --- usr.sbin/jail/jail.8 | 54 ++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8 index c9d929b89d4a..909abfef2708 100644 --- a/usr.sbin/jail/jail.8 +++ b/usr.sbin/jail/jail.8 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 11, 2022 +.Dd March 12, 2023 .Dt JAIL 8 .Os .Sh NAME @@ -586,17 +586,49 @@ memory subject to and resource limits. .It Va allow.nfsd The -.Xr mountd 8 +.Xr mountd 8 , +.Xr nfsd 8 , +.Xr nfsuserd 8 , +.Xr gssd 8 and -.Xr nfsd 8 -daemons are permitted to run inside a vnet-enabled jail. -The kernel must have been compiled with the -.Sy VNET_NFSD option +.Xr rpc.tlsservd 8 +daemons are permitted to run inside a properly configured vnet-enabled jail. +The jail's root must be a file system mount point and +.Va enforce_statfs +must not be set to 0, so that +.Xr mountd 8 +can export file systems visible within the jail. +.Va enforce_statfs +must be set to 1 if file systems mounted under the +jail's file system need to be exported by +.Xr mount 8 . +For exporting only the jail's file system, a setting of 2 +is sufficient. +If the kernel configuration does not include the +.Sy NFSD +option, +.Pa nfsd.ko +must be loaded outside of the jails. +This is normally done by adding +.Dq nfsd +to +.Va kld_list +in the +.Xr rc.conf 5 +file outside of the jails. +Similarily, if the +.Xr gssd 8 +is to be run in a jail, either the kernel +.Sy KGSSAPI +option needs to be specified or +.Dq kgssapi and -.Sy NFSD option -as well as the -.Sy VIMAGE option -for this to be available. +.Dq kgssapi_krb5 +need to be in +.Va kld_list +in the +.Xr rc.conf 5 +file outside of the jails. .It Va allow.reserved_ports The jail root may bind to ports lower than 1024. .It Va allow.unprivileged_proc_debug @@ -1372,6 +1404,8 @@ environment of the first jail. .Xr jexec 8 , .Xr jls 8 , .Xr mount 8 , +.Xr mountd 8 , +.Xr nfsd 8 , .Xr reboot 8 , .Xr rpcbind 8 , .Xr sendmail 8 ,