Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2024 20:26:20 +0000
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        current@freebsd.org
Subject:   ZFS sharenfs broken
Message-ID:  <finblit5mng4o6fujnf2vfiotq74xj3par5kz6vrcflg4viwud@s54qavuv5c3h>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?finblit5mng4o6fujnf2vfiotq74xj3par5kz6vrcflg4viwud>