From nobody Mon Mar 20 22:17:17 2023 X-Original-To: dev-commits-src-main@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 4PgTcY5RnRz40Lgt; Mon, 20 Mar 2023 22:17:17 +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 4PgTcY50wxz3wls; Mon, 20 Mar 2023 22:17:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679350637; 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=OEt3w+I3H4bl8BSYGG0XC0A5C+pUMgKuaN6Jxv07DG0=; b=kZlbEFodZqLgu4RHvAEgRNpXCY3ouqMueywValySPUiY1oJtdnOFxmp6q6bwCT/Gf++bbZ r2vn69Oyn0oissFK5sGGfuPYINJgOf8vxB95DTQPIkmpUpHUUMrEVVvYpgUxMluRyxfMlx rlaawi5FIv2Kx1D+Pe7bDz6YT2n2+uESTu9In3h4oCcRWyeH5YWzOTakI3SxNir6KUfb95 6BtLqUPFeSGYr7+ENlLW8x4XRnqXP3dVHT7/5lZpth7OvOGAjUWBQ8ybrqWvDfUGrXr2wT 8EpPmEOmJNMbAoeGGnvlgevO9kPTtKjm7VBlCRUM+EQBimAa039Wq2Sees31Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679350637; 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=OEt3w+I3H4bl8BSYGG0XC0A5C+pUMgKuaN6Jxv07DG0=; b=Hlnexrq+UotCzsm5Fw1koJXLtd5s6D162TgoSsUMJKEzTuX6+w4EQQ3S0qMfVPDei5Ku0Z FA+OChSAfLSs5nwjlZKkI8HhHGBV9Dwpd6e0kU0KZ6SydW27TXpZgi72V7/lu6nr2l5zNZ 7RrAixfdgHNSu98dnf6JQleD/VqH/P6HFs5+/hK78sw0dcLIZgKN5zJ1/G5dBEJ+JUBz6H nwtd94x6Ab2d996nDK9ifqGdazZjyVeUVCRywusVxih8t1gpET+iQloBQ5qOpb7CoE0xGv vFZU1XMFdp8yRAuWJi+VL7vQD44JR/VBTSVwCax8TXiaWR/sJ914QnpjReSh3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679350637; a=rsa-sha256; cv=none; b=sdjH2h2f/Y8NUckAnmT3iYB1Hk6sXIyExTnwNXwlR5NUKk6Ka2XVmUuDv4DEDEC9rxgVip aLGl9Po7KTIY1qh/urgUV5pHWQ/ORe1ndokfoIu3Rc7HLKKxH0ZfQiFuxOWjT8q33RLOO7 a9IF3TBWPX1bNUdd5HoNEQ1jx8yOzZhtScTESCTfUQthn5uil4CgvQHkE74X6CFnZjlxjT mvtNJRY0v6qCGLjfCqfXccu+NjOH+m1VPQxVJVeaA62kAhbDUqLTrtlJMb5eOhCSwbXqbL XqaHQUji8meetvbgXUL+TO9Xss0E4WnSWwKZ2wwwsq2OkZ1GSagUrC3VHDq7MA== 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 4PgTcY44YpznSP; Mon, 20 Mar 2023 22:17:17 +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 32KMHHoK031286; Mon, 20 Mar 2023 22:17:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32KMHHo6031285; Mon, 20 Mar 2023 22:17:17 GMT (envelope-from git) Date: Mon, 20 Mar 2023 22:17:17 GMT Message-Id: <202303202217.32KMHHo6031285@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: 9432e798fc6d - main - mountd.8: Update for mountd running in jails List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 9432e798fc6daaad341a496e9abcf9e3b760a63b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=9432e798fc6daaad341a496e9abcf9e3b760a63b commit 9432e798fc6daaad341a496e9abcf9e3b760a63b Author: Rick Macklem AuthorDate: 2023-03-20 22:16:03 +0000 Commit: Rick Macklem CommitDate: 2023-03-20 22:16:03 +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. Reviewed by: markj MFC after: 3 months Differential Revision: https://reviews.freebsd.org/D39168 --- 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