From nobody Mon May 22 18:32:41 2023 X-Original-To: dev-commits-src-branches@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 4QQ5fK3t3mz4CJLq; Mon, 22 May 2023 18:32:41 +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 4QQ5fK2wtLz3xZt; Mon, 22 May 2023 18:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684780361; 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=//K8zNrRba/nY8uqcK5MulMjrp8EAwRoro+qL3hXDdg=; b=lSNexJjM9ylnKdZ8/MHPNrVmGYWENeXKUVrImF/wPm51lcGuOuLlYgE18aBxm+kGwAhZ5j aogdxUmfyGVYnTZihLcSqURbf9F5uvR6F12AZ2CsjhQ6ULfWf3GWuw+H53OxO0qGkqf11T QBxMSmCHG1fUsOgrxKiNac2l0ouosjK2TdvchZzFe6I+S8MSO+nBaDOuUmhmxQzDf31XtK j+4N214c1NgE1KlWu7i/Wy3iXwEPcWyMRLwZQ8y/GTFK84Ofmrj+hWpH7LU2Jk7KjWtP4l gCJ80efXLE5nko+g+p2tBy5GMqNvoeGLjurXJ85fEsQwlXb6rSwrJZmk0Y8uDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684780361; 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=//K8zNrRba/nY8uqcK5MulMjrp8EAwRoro+qL3hXDdg=; b=vDmJFhouas6AH29puA6GNp27JpGP06Ylkm4hnH5/1lOhLKqxz46qWqJY/95xKOW+lDk6R9 blqffEp4uWJZUoR+qsRr5V0GoXpJk3adfgA4KZzkSMM2Pqxz8/sMb//8DUve0YFUNihiyj kRe0aITQZU2oOd89muGUIIAkEeCB0toO4wEJMnBy9c2GlCbX+1E9CGxFDYWiIp3EgWajhj iYhZ9WxP83+8Q/+pdwHepJg0xYUmD3Y6Sd8MYRf6c2XZlHByyjC0lctHqEPTmaQrKrtjA1 DN22ThnjjeXvh2kgmE+in71M+HEN5m4bobRtrOw92uH7o8+B4bBdzb7CUMmBpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684780361; a=rsa-sha256; cv=none; b=NqF225WChuaroZtPR1q52yhBDN54GCupP/nFPfNPmMgVhx92/Ri6JPdii58ZA0Kl65DSNy ZpkWXhCJH/drdoqiArPZyHMosqN6ToT3k4NvCByW4Z9cjz3zSm1yohgnSTdircKRZUfJak r3H2miELICGEwTZtDEJrekYjK4BMwsxIwRe9R5sMuI/9Q3hBBzHcFXDxmDE2yaqwm8FBYl y34YmRpKuKG3vgU9CAhItWK38l3OslDDEJ/PNPxFJ1Wl9NWm0syB8/PKsXmsnZDSNwpeHX c8DIn0EHpCb4GtFf5q6di8eLADZQFC511roHnQjTQkw9EQrdQCzwVvq2Y8ewAA== 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 4QQ5fK1wKhzSrR; Mon, 22 May 2023 18:32:41 +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 34MIWfWi054534; Mon, 22 May 2023 18:32:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34MIWfDm054533; Mon, 22 May 2023 18:32:41 GMT (envelope-from git) Date: Mon, 22 May 2023 18:32:41 GMT Message-Id: <202305221832.34MIWfDm054533@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: e11c3ae65e96 - stable/13 - mountd.8: Update for mountd running in jails List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: e11c3ae65e96987d05d611a621c185b60b2c59b5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=e11c3ae65e96987d05d611a621c185b60b2c59b5 commit e11c3ae65e96987d05d611a621c185b60b2c59b5 Author: Rick Macklem AuthorDate: 2023-03-20 22:16:03 +0000 Commit: Rick Macklem CommitDate: 2023-05-22 18:31:50 +0000 mountd.8: Update for mountd running in jails Mountd can now be run in an appropriately configured vnet jail. This man page update adds some information for this case. This is a content change. (cherry picked from commit 9432e798fc6daaad341a496e9abcf9e3b760a63b) --- usr.sbin/mountd/mountd.8 | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/usr.sbin/mountd/mountd.8 b/usr.sbin/mountd/mountd.8 index 128b305cb5d9..207b50e3501d 100644 --- a/usr.sbin/mountd/mountd.8 +++ b/usr.sbin/mountd/mountd.8 @@ -28,7 +28,7 @@ .\" @(#)mountd.8 8.4 (Berkeley) 4/28/95 .\" $FreeBSD$ .\" -.Dd October 11, 2020 +.Dd March 18, 2023 .Dt MOUNTD 8 .Os .Sh NAME @@ -158,7 +158,7 @@ When is started, it loads the export host addresses and options into the kernel using the -.Xr mount 2 +.Xr nmount 2 system call. After changing the exports file, a hangup signal should be sent to the @@ -172,6 +172,20 @@ check the syslog output to see if logged any parsing errors in the exports file. .Pp +If multiple instances of +.Nm +are being run, either in multiple jails or both within +and outside of a jail, care must be taken to export +any given file system in only one of the instances. +Note that the +.Va allow.nfsd +jail parameter is required to allow +.Nm +to run in a jail. +See +.Xr jail 8 +for more information. +.Pp If .Nm detects that the running kernel does not include @@ -185,6 +199,15 @@ If this fails, or no KLD was available, .Nm exits with an error. +When run in a jail, the +.Xr kldload 2 +must be done outside the jail, typically by adding +.Dq nfsd +to +.Va kld_list +in the +.Xr rc.conf 5 +file on the jail host. .Sh FILES .Bl -tag -width /var/run/mountd.pid -compact .It Pa /etc/exports @@ -199,6 +222,8 @@ the current list of remote mounted file systems .Xr kldload 2 , .Xr nfsv4 4 , .Xr exports 5 , +.Xr rc.conf 5 , +.Xr jail 8 , .Xr nfsd 8 , .Xr rpcbind 8 , .Xr showmount 8