From nobody Thu Oct 24 20:46:27 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 4XZHyH3kSTz5ZrYK for ; Thu, 24 Oct 2024 20:46:31 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (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 4XZHyH1RHYz44YY for ; Thu, 24 Oct 2024 20:46:31 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3e5fee32e76so798219b6e.1 for ; Thu, 24 Oct 2024 13:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1729802790; x=1730407590; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=2bxSVVqDHn+Vna9K/+8dcxkesQdApewZYhjjypVjRMM=; b=M1MYl83jSU9cU2GLFC1K8Bw8ajxqTgInXg663l91Qj2Y2v6jlHU5HC3o+nTPulpCnt i5VfAXSE/8YKWJ9HuxBZ8CMjNg+Un7fgbSjt1aWMPkzPTFqyL+lW3hyrtC/K40URCXlY GJ1ccFVCsRzL8GJks8QKgHoXZeN4J+1ueEOvsmJ561RRbq+Pdu5OJGksXYv9Y8eoPJ7Q VpZpRKGJP5/lXtoRZxev5GNlFXUhsmsFWuW2QqIQwUXXm6eRwJ3yRbDfVWmFteqyLgQL kjEGoekE4XR+ahUvC6s7B0VIqWkcXtOH5lhXQ0v9U5UWmQzqjwvMDKhGO++k8VX7me82 T9Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729802790; x=1730407590; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2bxSVVqDHn+Vna9K/+8dcxkesQdApewZYhjjypVjRMM=; b=s9ywMGfv27HBmqUrwlONI1MjqqJgKLuqsgs/MdSLyB22Me2Cx2PIUwMi4cQpDyMuwm tfv/r4yzkYg9m7Z9RWu9VhaKH79wJ+/RaUKCqBmyDkgvO5v6zkusvVmTE2JISIY8tQvY 6exc+U1YlSP9+hbbIASL89gKJc4eKh8A/lp7oqMvrvyF2uQFFHvIaYVAzO+SaD1Nmg0c lUBbx8+PmwiH09PAW7HVt6Q6jhCv+zlb9w9zfdaxzT9cM4/nbRQZA3gIni4rMTATNmYY k5hTg9IHgwSMVYwoOjSrJAerHBTy+DEyudDQ6lJqSHsmjb55XF3CtBkFdyk9W5RYvKP6 a34w== X-Gm-Message-State: AOJu0YyF1CVoX3uQCLdJiYb2Gv0JVg3wyqymsvyAopMbyG0QQYv7AQVU H/e/dCKlBaQzaWPXL7sOXMKfqg1hsZTVT0rPX3nc2aRENICVRwQ6C3Y0ss6+hgBE6OxcSjrtyro T X-Google-Smtp-Source: AGHT+IH5hvCKFVGLNehcC6YkkXaHF9ISJJxEvhcpaV7W/JthX9oA3ecoqpspzXiU7gaDvXblAuRAXA== X-Received: by 2002:a05:6808:23c8:b0:3e6:1356:ad5e with SMTP id 5614622812f47-3e624500ac4mr7927306b6e.13.1729802789813; Thu, 24 Oct 2024 13:46:29 -0700 (PDT) Received: from mutt-hbsd ([184.99.62.3]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4dc2a52fa92sm2830017173.16.2024.10.24.13.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 13:46:28 -0700 (PDT) Date: Thu, 24 Oct 2024 20:46:27 +0000 From: Shawn Webb To: Alan Somers Cc: current@freebsd.org Subject: Re: 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 References: 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="hfsswdswid6exr7i" Content-Disposition: inline In-Reply-To: X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4XZHyH1RHYz44YY X-Spamd-Bar: ---- --hfsswdswid6exr7i Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable That gave me enough of a hint to go on. It does look like it was an issue with how I originally specified the options. For posterity's sake, here's how I fixed it: zfs set sharenfs=3D'-ro -alldirs -network 172.16.1.0 -mask 255.255.255.0' r= pool/data/build/pub (Applied the same sharenfs settings with the other datasets.) All is well now. Thanks a bunch, Alan! I really appreciate the help. :-) --=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 On Thu, Oct 24, 2024 at 02:36:47PM UTC, Alan Somers wrote: > I think that's just an exports(5) syntax error. I don't think "=3D" > should follow "-ro". Try this instead: >=20 > zfs set sharenfs=3D'-ro -alldirs 172.16.1.0/24' rpool/data/build/pub >=20 > On Thu, Oct 24, 2024 at 2:26=E2=80=AFPM Shawn Webb wrote: > > > > 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 '= /data/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 '= /data/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 '= /data/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 '= /data/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 > > /data/build/pub/13-stable -ro=3D172.16.1.0/24 -alldirs > > /data/build/pub/cross-dso-cfi -ro=3D172.16.1.0/24 -alldirs > > /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= hardened/current/master-n194236-a8e5e4e37b03: Thu Oct 24 19:49:31 UTC 202= 4 root@hbsd-os-build-01:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD am= d64 > > > > Thanks, > > > > -- > > 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= /03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --hfsswdswid6exr7i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmcash0ACgkQ/y5nonf4 4fp7rA/6A/PTCOIpZqG9f3oSLxv3i4clea4EJaAfLViunybm8q0cLRCfVLkSskpj VdLAuvglG1Nq9QCmQZ8CHWm9kfXFcT+F3VuqlG3C4CDjpeaniMCwpkku81xSpn26 hgX5jruXtisQhp/uwufgjlrUQDwbFQS4WqYUJsDrPAEChdb2mehrumLN5mf22C1k jq3pxIAYpKHzkpB31uZVblbA8XnKIMDgW4ENN/ijqqhEBPEOFpYEdRLsxaPAVOp0 O37iZ/jUJyYmACaCQ/wQJvpsnl4lxyV0l4CaVc7jM6LE8mz9LtDdRiiGCctvaePO 7ofqjFSUs52im5sHN4ysY3qHEeX5kiv6KP4VnWTHbQSwiHvTm42/FetrMAJvxX3K RrxPPWXxMF6q/tIcu2B+J/7TJ8/JvFCb825Dq/fHW34ra+32bQ/wkxD2tcYVLB04 /wqdmtTXWB7QFhMIjTLbQRQcEmM1lO+Kz/7A45GojrfKHnOoYI076p4WtRa3EcEy MQTDdRWS5yGP5AJjiSsHhpkeZ6T0+3h8LsxcKoJs8xn6bypvneERoBWU+4e1GSRu akBu+z/ePUCK28qhsZBfHOXhIWDol9mrtHzHLIv2P3oXJBEc1QE+R6X9xQHr9mor BFsNC5ODzea+705ZTBgjiIx0DmkRKrU5qLTPpjUcY+hv8VR9b4c= =5+T/ -----END PGP SIGNATURE----- --hfsswdswid6exr7i--