From nobody Thu Oct 24 20:36:47 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 4XZHlL1XbYz5ZrLr for ; Thu, 24 Oct 2024 20:37:02 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 4XZHlK6C3Hz42PF for ; Thu, 24 Oct 2024 20:37:01 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2fb49510250so15001701fa.0 for ; Thu, 24 Oct 2024 13:37:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729802220; x=1730407020; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1J9kGkdegEKpaktdxQFMGFJYn5IAX5bYZHt8OOckOHM=; b=jHUsIgxhpRoxRu/+BPN222vCVBw/5o4cdNaegF0lj9vZJ06L3BO1+28zSLxZP3nP4u FpqpkOUTsU558OVeDkcZzXdYAPEWAU2BjzrKix29tgdB+7lkIumemCUMlRFtO/2DbpiC 2OZMrQ5pYdtrExxzq3GL+mTPKKjEbfHvstOY4EnpfixCiQJeaQRCGY+vWE/TVSDvFWSs Qy01GJg5amKcs2NvT2P57UAZ5kIXrOZSfe2CAMlcaGU36J1gN43E+dw3ScCfEAeGicEY DIMGTFn3HdLbFCIJB8UgS9BhhXRwz7k3UlDZbuMl7zaxYdR/kTfCfUpMVx8AuIQU75Kg xCiA== X-Gm-Message-State: AOJu0Yyu5A+yrGTOWdmtsJIe5rVfb0kjAcHKFy8TPbnfWb+pZCFEgX/p iczgEG1g3IqiRFPrr2cv7Dba2RVn4g/qlAB0PGYbkWWbx2MFOTpQ25j6DS/wLugD70t7Mh7Voay x2Wt62Qeuy7l5c4vgpZ3+rpP1k4KiOTcP X-Google-Smtp-Source: AGHT+IE0xvJDeNF58G9M0dL83DHxqC8G3fHPBKldihZJn9u8dhGxgAsO1/WeUKeYvzMG2Il5tQ/2kDlHzvrd2Uvofsw= X-Received: by 2002:a05:651c:4ca:b0:2fb:411e:d979 with SMTP id 38308e7fff4ca-2fc9fcd99c5mr41116361fa.31.1729802219646; Thu, 24 Oct 2024 13:36:59 -0700 (PDT) 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 References: In-Reply-To: From: Alan Somers Date: Thu, 24 Oct 2024 14:36:47 -0600 Message-ID: Subject: Re: ZFS sharenfs broken To: Shawn Webb Cc: current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4XZHlK6C3Hz42PF X-Spamd-Bar: ---- I think that's just an exports(5) syntax error. I don't think "=3D" should follow "-ro". Try this instead: zfs set sharenfs=3D'-ro -alldirs 172.16.1.0/24' rpool/data/build/pub 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 '/d= ata/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 '/d= ata/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 '/d= ata/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 '/d= ata/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 2024 = root@hbsd-os-build-01:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD amd6= 4 > > 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/0= 3A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc