Article View: muc.lists.freebsd.hackers
Article #99Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
From: Sebastian Feld
Date: Mon, 16 Nov 2026 23:31
Date: Mon, 16 Nov 2026 23:31
104 lines
9852 bytes
9852 bytes
On Mon, Nov 16, 2026 at 8:45 PM Rick Macklem <rick.macklem@gmail.com> wrote: > > On Mon, Nov 16, 2026 at 7:43 AM Sebastian Feld > <sebastian.n.feld@gmail.com> wrote: > > > > On Tue, Nov 10, 2026 at 6:29 PM Sebastian Feld > > <sebastian.n.feld@gmail.com> wrote: > > > > > > On Mon, Nov 2, 2026 at 9:45 PM Rick Macklem <rick.macklem@gmail.com> wrote: > > > > > > > > On Mon, Nov 2, 2026 at 11:01 AM Joshuah Hurst <joshhurst@gmail.com> wrote: > > > > > > > > > > On Wed, Sep 10, 2025 at 11:46 PM Rick Macklem <rick.macklem@gmail.com> wrote: > > > > > > > > > > > > On Wed, Sep 10, 2025 at 12:39 PM Joshuah Hurst <joshhurst@gmail.com> wrote: > > > > > > > > > > > > > > We have these two suggestions for NFS exports (NFSv4, NFSv4.1) in our > > > > > > > guidelines: > > > > > > > > > > > > > > zfs set aclmode=passthrough rpool/nfsexport > > > > > > > zfs set aclinherit=passthrough rpool/nfsexport > > > > > > > > > > > > > > I this still needed for FreeBSD ZFS pools being exported via NFSv4.1, > > > > > > > so that ACL inheritance works as expected? > > > > > > I have no idea. What client(s) are you using? > > > > > > > > > > > > All I can tell you is that the FreeBSD NFSv4.1/4.2 server does not > > > > > > support the "dacl" attribute, because it requires that a flag called > > > > > > na41_flag be stored for each file object and that is not currently > > > > > > done in FreeBSD. (This is related to "automatic inheritance", > > > > > > in case that is what you are referring to?) > > > > > > > > > > I did some investigation in this matter, and I believe what is needed > > > > > is FATTR4_DACL support in both FreeBSD NFS server and NFS client. > > > > > > > > > > Is there already an enhancement request at bugs.freebsd.org to get > > > > > FATTR4_DACL for propper "automatic inheritance" with NFSv4.1 on ZFS? > > > > Well, if I understand it correctly (and I may not since I am not an ACL expert), > > > > all the server side needs is that flags field, which I think can be implemented > > > > as a system space extended attribute. > > > > > > > > I might get around to doing this in the next year, in time for FreeBSD-16, > > > > but no guarantees. (I think that might be enough to make the Windows > > > > client happy?) > > > > > > It would make everyone happy who uses and relies on ZFS/NFSv4 ACLs. > > > That includes proper ACL inheritance for "normal" FreeBSD applications > > > (works with ZFS, but due to lack of FATTR4_DACL not so much on FreeBSD > > > NFS clients), or when SAMBA is used with the NFS4ACL module on top of > > > a NFSv4.1 share instead of "raw" ZFS. > > > > > > FATTR4_DACL is unfortunately an "enterprise feature", i.e. it only > > > affects big sites who actually have to enforce ACL inheritance rules - > > > and they use SAMBA/SMB right now. > > > > I filed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300816 for > > this, basically for enterprise users and SMB protocol feature parity > > and SAMBA users. > Just to give you a bit of a reality check. I am an old retired guy who > does NFS/FreeBSD work as a hobby. Although there may be other > FreeBSD'ers interested in NFSv4, I am not aware of any. > > I have a pretty long to-do list these days, so any "please add.." > probably won't get handled by me anytime soon. > > If you really want NFSv4 enhancements in FreeBSD, coming > up with good patches that implement them and then submitting > those patches for review/commit is the way to go. (I'll admit I > am slow w.r.t. submitted patches these days, due to other > things, but will eventually get to them.) > > There is no "team of engineers working on FreeBSD's NFS", rick I apologise, I didn't want to rush you. I only filed the bug so it does not get forgotten. Sebi -- Sebastian Feld - IT security consultant -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<CAHnbEGK3DohXs+-CJUY3MA=Keb8A-A9J5MncDyMExnKr7bdQew@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <CAM5tNy4afLEN88Z3e3OtfwgintarfCqaf-yLwEz-LYZu2BSSEg@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Sebastian Feld <sebastian.n.feld@gmail.com>
Newsgroups: muc.lists.freebsd.hackers
Subject: Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
Date: Tue, 17 Nov 2026 00:31:53 +0100
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAHnbEGK3DohXs+-CJUY3MA=Keb8A-A9J5MncDyMExnKr7bdQew@mail.gmail.com>
References: <> <CAM5tNy4afLEN88Z3e3OtfwgintarfCqaf-yLwEz-LYZu2BSSEg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
logging-data="31974"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1794871960;
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:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-owner:list-unsubscribe:list-subscribe:list-post;
bh=PmNo43Uh717Hv/tb9lITqvCHs6wDh67RSzCo6DOrosE=;
b=BY2W8M6O4j116NMPms6P56F/fWrGyy12fL+IQKUBujCONHjOkKlhGlXWxwy9VRgXMpv8Fh
b7su6mrNehtc8AVLFzOWZPsE5d2FrIeVzjTNOkXS6JHGb8B/8F1lF0VPzrak8cdh36RQFB
c2z1B7J+ajdsE95WGuyvh+cW9SPo9ZTKsdLarn7H0g3TfJleWOHMYVZ1BYx2QmhNzZIoz+
UHVHFCyLazjxLPdCvPkheHrOVPA7jSkqPbwUjmaUwgaBTKETEOW7SpqTbCAXX/y7saI9nj
+dsmvqx7PPZdx6U6ybNPfWxAAjv54NiMGCOpXZpD6YukXdgRfaXJ5wLol80Pgw==
X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
dkim=pass header.d=gmail.com header.s=20260707 header.b=ip7umFiK;
spf=pass (mx1.freebsd.org: domain of sebastian.n.feld@gmail.com designates 2a00:1450:4864:20::22c as permitted sender) smtp.mailfrom=sebastian.n.feld@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com;
arc=pass ("google.com:s=arc-20260327:i=1")
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794871952; x=1795476752; darn=freebsd.org;
h=content-transfer-encoding:content-type:to:subject:message-id:date
:from:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=PmNo43Uh717Hv/tb9lITqvCHs6wDh67RSzCo6DOrosE=;
b=ip7umFiKojw6lhQdBP58XfGCCJXwlLjeBSOtmyIm0k9hhlChdhx8PLmYXk+GPJdHTc
2Hgh+nQ86og0gR/oGrjQODV/ALJv52fyIDN55XuoA0LqXVmecsKjTTICndw2LeUqsRHO
7s8QhZoyf8qloQBdsI2s/puoCyP+T15NDHrsbBrIZKfzGKZeICeLkf8bwBf0GmzeDe1f
fvWz8GdxeNkidQEGQ7mjpa9bgstPy5LYIN4haez+nqf94rXG5Ne4XCMbFObjXqoL5DcF
WF4WUNa5+k5dpuFxhPFNz9JozvBzfOCSCvAXAXOiPYUTzWcoKS+I5IvafM/nInm3rrX7
z+RA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794871952; x=1795476752;
h=content-transfer-encoding:content-type:to:subject:message-id:date
:from:in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to:content-type;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z-LYZu2BSSEg@mail.gmail.com>
X-Gm-Features: AclHuK9viDyh1ViJwWg51dD6vyOQE45hsOSTfbkEONUbjLuEF--sqAKqroDwXlQ
X-Rspamd-Queue-Id: 4jT40M6Jsmz4lZQ
X-Spamd-Bar: /
X-Spamd-Result: default: False [-1.00 / 15.00];
ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
SUBJECT_ENDS_QUESTION(1.00)[];
DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
R_DKIM_ALLOW(-0.20)[gmail.com:s=20260707];
R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4864::/56];
MIME_GOOD(-0.10)[text/plain];
RCVD_TLS_LAST(0.00)[];
ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
MIME_TRACE(0.00)[0:+];
FREEMAIL_ENVFROM(0.00)[gmail.com];
RCVD_COUNT_ONE(0.00)[1];
FREEMAIL_FROM(0.00)[gmail.com];
MISSING_XM_UA(0.00)[];
TO_MATCH_ENVRCPT_ALL(0.00)[];
MID_RHS_MATCH_FROMTLD(0.00)[];
MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
RCPT_COUNT_ONE(0.00)[1];
FROM_EQ_ENVFROM(0.00)[];
FROM_HAS_DN(0.00)[];
RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22c:from];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
TO_DN_ALL(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
ALIAS_RESOLVED(0.00)[];
DKIM_TRACE(0.00)[gmail.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes