From nobody Tue Mar 14 22:29:04 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 4Pbp8w4pGQz3xZmX; Tue, 14 Mar 2023 22:29:04 +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 4Pbp8w3rwyz3xlb; Tue, 14 Mar 2023 22:29:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678832944; 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=hHJKhSLKEIB+7M5m82QNXz8qJArc96KpRzXgX2bEsrg=; b=FZAUNxhjpW4HIybB5R+LuceXMlv38ZgLae5eBCrrMKcu9sJRloDptjM4Yr1NclLohIpX7J +PMHMFYgDqAkaqqDfm2fuVZUybMBi6Ivmgq6Aipt9vu7Mvciy8jHEljQsqo/QsH+dZvAm3 AFmW/Onp7eUXwqbWTgu7CFwe4NNAV3y/YeNWidj1oiKZmet7ivJvsKhIqVmDM+NDpDsf3j bruEEO+rgr91uQeqcGOoUldDQqPjUwNRn959BPnmq8XDsvBCwNuhBl7wUs+wqn9YQAkMJc SYqeO5bmztQ9VmwzrwMqwWiIX045s0SNADGxeODEnr41if6iZqP+/4q7vyqFSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678832944; 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=hHJKhSLKEIB+7M5m82QNXz8qJArc96KpRzXgX2bEsrg=; b=UXTGIrJazKUQpfSwlKZORSMDLlB/OYy5Nc2ObiBesUjluWBHsQwEJsV1kxUDUiaVUqe7K4 rPrcb5lYITeVm4dtNUHKKbQIZ61C369Okr0a7rkNqL+7ntFnIPQnxLD37yslh22cyup73j OedAcODT64aOOkA+/XCC0BDue3+ugG5+V5FJInGTsctHoMa/SeyybzxV6sq9tWWnXYaTf8 iTNJ0r9RsHQgwxEPrvpeeKtoB8RuDKWaJrOJyUZM8EidgtEZUm5G7BnKcTQMSTjhWMW5Tx 31tHTrD+MnRqsgtE70m5yxlcvqau2Ok18DwMI4E9TVtdxSCXHQx008pAGyTBBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678832944; a=rsa-sha256; cv=none; b=Lj03J4IA+N2UmE7z2wVrkGP+zB3kz9NEuaZTnOw/uKlFRlaX5MzM3qV/iFTQ/zHAc7EtB0 2W9etAldVsoVRR2VxmLj/FQnAZxFbR+ol2fO9Rwpa6ONmOZfPRUaDsd16nE2E5yoirlW3B eWnXvkqrr6s76794LKmDfFG1oLC7/1lYenxhrGaWsiXuGVdzR0pdyq8PXxbewtP3D9CScB 6QVYXtZjLtsJEpu29jgDSi6uvO8l6mDUuZmznpBI+voYiPFS4XWoH1YicqfwI4y4YXmaI1 tfYUdweKrnVeFVEwtenLYppIqM3acRF+hand+5H4tDIaaTn+mCsQTRAwP/h0jg== 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 4Pbp8w2cVRzsnd; Tue, 14 Mar 2023 22:29:04 +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 32EMT466050099; Tue, 14 Mar 2023 22:29:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32EMT4A0050098; Tue, 14 Mar 2023 22:29:04 GMT (envelope-from git) Date: Tue, 14 Mar 2023 22:29:04 GMT Message-Id: <202303142229.32EMT4A0050098@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: c0f94fee0bdd - main - 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/main X-Git-Reftype: branch X-Git-Commit: c0f94fee0bdddcc07f216f9723544f78ace5155a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=c0f94fee0bdddcc07f216f9723544f78ace5155a commit c0f94fee0bdddcc07f216f9723544f78ace5155a Author: Rick Macklem AuthorDate: 2023-03-14 22:28:02 +0000 Commit: Rick Macklem CommitDate: 2023-03-14 22:28:02 +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. Reviewed by: karels, markj, pauamma (manpages) MFC after: 3 months Differential Revision: https://reviews.freebsd.org/D39033 --- 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 e40e455f61a6..a69702900d8e 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 ,