From nobody Thu Oct 24 20:26:20 2024 X-Original-To: current@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 4XZHW468kDz5Zqg8 for ; Thu, 24 Oct 2024 20:26:24 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZHW33pTZz3xbh for ; Thu, 24 Oct 2024 20:26:23 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=fRNaubTX; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org; dmarc=none Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3a3b6b281d4so5669655ab.0 for ; Thu, 24 Oct 2024 13:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1729801582; x=1730406382; darn=freebsd.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=T2uJrkUChZB4+c/UdcZnBqTAW4xtBOvnVaRXmo6h/bU=; b=fRNaubTX8CqUldg/filp8NO8SClUxe9k8nZmVqZUMVLps/ubbfEYG3fNGikTmlsnQY kktpm39kVcIM1Fy1WrrkGBQO+xehsjzhlxukY9tkhf8EnVJYeOmVbCT7bgWzpO0143GL cHmNVLNUGV3V2V8RakwZaFwXvOhqFuvi5okS9EH9Kj9ennoFyriTLM/aUDx1WiePSd4j oEAuuanyUPetmGsyaWDJo5/wA47yImhmDkfRcJso0/rNB8eBODlntMG7GYCnstC22CAp Yo0pm0NzHJ/tAqzA3buJugPTGhUq+ozMUMLr2ka+aIMd5p7oKR8eTwP0l6kgrbZrIRxM nrDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729801582; x=1730406382; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T2uJrkUChZB4+c/UdcZnBqTAW4xtBOvnVaRXmo6h/bU=; b=dF52A1MIhtcQEWFUTXOUImclFCskWPodXIkr3CE+ZHGC6xzGAaWs3O/g9RrN/gePSi /EtbIgNpHYDMFRr/YJ82y0xa9p/REHWGYlYErTOJ5SB/9Uu9jaEfPepeKYkJQU+2DerL To3qfhKE9i6b6hA9q8idOQNdSCbL3ckkvh3y5x/pdvDSLIiESKoUtdUUjuGrIrNWnOEL 4CyOb+SqHGDuU1+zqn3Fa9vLgUN9NpltczYdx9rb4VufCJWWBnIHpHbPsKEiG8YMaIyL 3u5ARnjNQ2mW3b3tpqg8KIbfSqHP25mOA/+wsqa/Wo7kGgqCEq1HBuv48Q1Zwi+F4psv uYoQ== X-Gm-Message-State: AOJu0Yze0stlE70yvsmBNIOyuajuhX57gB939vhjIUonx9NkwmM/sZ3Z spORD15JOuGGNPsURFjBFemT6R8LlLSLi4V5Sr/ieU8gorlnVrnfLpe6iEb7/1QqGJcMQ710uIw 4b2VMYaQwEwsxsW3Z5rRWskoP5VSsGK5Awa3XzRTWcURzKh/RoJcBaGsTCRSNpSCJ04zoOdkM/S gl1SXuotgVbUzM4o3SLAr5E7TwoFa4LK3iSf/4Wg6rNg== X-Google-Smtp-Source: AGHT+IExtmxJDSj7/M7is3XkwFil5VuOSetIKZqrIt5ktW9+X1cpU63swqZKoOirBPM7umv0w6XnTA== X-Received: by 2002:a05:6e02:1c0a:b0:3a2:7651:9846 with SMTP id e9e14a558f8ab-3a4de7a35e4mr46427095ab.13.1729801581824; Thu, 24 Oct 2024 13:26:21 -0700 (PDT) Received: from mutt-hbsd ([184.99.62.3]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3a400aa4657sm31769235ab.32.2024.10.24.13.26.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 13:26:21 -0700 (PDT) Date: Thu, 24 Oct 2024 20:26:20 +0000 From: Shawn Webb To: current@freebsd.org Subject: ZFS sharenfs broken Message-ID: X-Operating-System: FreeBSD mutt-hbsd 15.0-CURRENT-HBSD FreeBSD 15.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uomizr4pvhawelvz" Content-Disposition: inline X-Spamd-Result: default: False [-5.10 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[hardenedbsd.org]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::131:from]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+] X-Rspamd-Queue-Id: 4XZHW33pTZz3xbh X-Spamd-Bar: ----- --uomizr4pvhawelvz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey all, I'm exposing some ZFS datasets using the `zfs set sharenfs` option. However, this causes mountd to complain: =3D=3D=3D=3D BEGIN mountd LOG =3D=3D=3D=3D Oct 24 20:19:59 hbsd-os-build-01 mountd[89840]: bad exports list line '/dat= a/build/pub/current -ro' Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: =3D after op: ro Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: bad exports list line '/dat= a/build/pub -ro' Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: =3D after op: ro Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: bad exports list line '/dat= a/build/pub/13-stable -ro' Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: =3D after op: ro Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: bad exports list line '/dat= a/build/pub/cross-dso-cfi -ro' Oct 24 20:20:07 hbsd-os-build-01 mountd[14071]: =3D after op: ro =3D=3D=3D=3D END mountd LOG =3D=3D=3D=3D The command I ran for those datasets: zfs set sharenfs=3D'ro=3D172.16.1.0/24,-alldirs' rpool/data/build/pub (Replace that last argument with the other datasets. The same exact command was used, just with the dataset changed.) The /etc/zfs/exports file contains: =3D=3D=3D=3D BEGIN exports =3D=3D=3D=3D # !!! DO NOT EDIT THIS FILE MANUALLY !!! /data/build/pub -ro=3D172.16.1.0/24 -alldirs=20 /data/build/pub/13-stable -ro=3D172.16.1.0/24 -alldirs=20 /data/build/pub/cross-dso-cfi -ro=3D172.16.1.0/24 -alldirs=20 /data/build/pub/current -ro=3D172.16.1.0/24 -alldirs =3D=3D=3D=3D END exports =3D=3D=3D I'm a bit unsure of what to do here. I'm not sure if the issue lies in ZFS or mountd or something else entirely. `uname -a` shows: FreeBSD hbsd-os-build-01 15.0-CURRENT-HBSD FreeBSD 15.0-CURRENT-HBSD #0 ha= rdened/current/master-n194236-a8e5e4e37b03: Thu Oct 24 19:49:31 UTC 2024 = root@hbsd-os-build-01:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD amd64 Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --uomizr4pvhawelvz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmcarWQACgkQ/y5nonf4 4frN4Q/6A0oG5P6gupeQidBczk0lmEy4RNLqY5IJxflpfOnLyiK+4FZvu1noB6jK HHz74B0mCGr23e3zI78D1CxFDosoDzyTjvpgjC3Q88UBwhcW+fihZuwSE4lB/hqn Fgfd6oGtx8O7/+LszM1/xYdYbny60rwdQBpPWMoTQE3nG0hwZD3yiQDBPwiFvGMJ aUaFgaaRzvfS4LSt2zS/OpWQ0suba0A7ms6udP5V0ijyH3Eq1S+aKNYP0wzTH9Tz wwCinpl+j9Vv7IZuE2ELFdIUaSPUG4zHyPefz4vXix4RJztgHeARQLctQXwwGvsH pWdto3Xg3V1PSpSvSMK6tFyPZq3gR8LF2HOm29nakZuwJq/zKU/83iFzcXF08wWd w3KS2Wm+QretpNAZD8Z31tqPbKx7PlQaqvx+Xr2Agx/KLO6TPc03IJal//LWaWv8 zKUHyVULAdKfM6dxzcfQHYOc18CanA/TK2pgjan0WFBGHkuwCiEBqD9rFjdkeaKb 7/pZyOT3E99GAZCG1AIR43w/SOl9dKXOowHIFcPhjGleyo8UtygOzyFp9dceGrIJ lts+VvHeLq7Uz0dWrTc/49sQ0gFjNbXnFlvkd9pUrFYrbmvJdxAJUjSAgY2LYnJA /tYCtfVKozNw20k/F71EfvPyjGCQ3NYAZeElZJDMeul9eawYDh8= =FrST -----END PGP SIGNATURE----- --uomizr4pvhawelvz--