Article View: muc.lists.freebsd.hackers
Article #93Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
From: Sebastian Feld
Date: Tue, 10 Nov 2026 17:29
Date: Tue, 10 Nov 2026 17:29
64 lines
8278 bytes
8278 bytes
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. 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:
<CAHnbEGLEY-7mOTG=DQjhVVFX9Du6dEJhOJSHGOLKzw4t4KFgRA@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <CAM5tNy5SkZsO5meJVVC2wfu767f3cJ+ZyHbTceik1Z8XL59s2A@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.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, 10 Nov 2026 18:29:51 +0100
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAHnbEGLEY-7mOTG=DQjhVVFX9Du6dEJhOJSHGOLKzw4t4KFgRA@mail.gmail.com>
References: <> <CAM5tNy5SkZsO5meJVVC2wfu767f3cJ+ZyHbTceik1Z8XL59s2A@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="93345"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1794331837;
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=RTW0EX4pmfW8VPwXhVG3R6oaLUNaCJebirT5f8TYFj0=;
b=gi4W7Bz0bxPnco4rvzr1HU5t/1diLKNjISskF6cuofAlOqHjGjMvmqXqh2OtgGZGImfDjr
TSzYLZBUY+ULlwW+zh1BR8acGgj+aSACGoeV70r+K17Y2SmCnttYdfRRmQM3jS5nmlnusM
Y+KoHjEh/5iT8nzMBZQI2x1wQ0vpGW1TYK7WaDdwd94eU1rONmYjRW4RDKZTVPq6AtlCj1
cQoEJhlWI5tJfYAeRHel9C8hkqlnwZhyrI15BhoAhaNY4lu5MR3UKq5Bn4ocaCHi0v1gGD
FlESZziVSipUmRJgQck5spUopXbV5/ag0gs6NNodfVsyq7PjMqghirTvpeAgWw==
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=U1s6CWUU;
spf=pass (mx1.freebsd.org: domain of sebastian.n.feld@gmail.com designates 2a00:1450:4864:20::12f 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=1794331830; x=1794936630; 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=RTW0EX4pmfW8VPwXhVG3R6oaLUNaCJebirT5f8TYFj0=;
b=U1s6CWUUaq7WgKH75Pq1nYpDPrqC8fj3li726w8z1XRsDgkWBgekzagch3H1vRyKzB
/01HIC7aRpzy9wTXB5QhMw6YzXG0v6uGMRt34/pWAwAeYXyNg2SQOMhxmddlcYQaiPT0
SL3sXmh8+qFMLA++dpOabXeIwZYosaGXPoNfW8UTURHBdjjkj42VjeOTu7W/0GeO6jr2
3S8uZ98lvwnRfHuthk/NTIYZmIEyrs0lvL33U3ciFJR83uMlAKTwGqmVqw5DkZbr5FbH
KRPdzCQ/PClbZUUvU2tn7wlfV/oUjQN/2whC8WlFGNBdRTxrXn84V5pitRGJKVmX0KSx
mzUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794331830; x=1794936630;
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;
bh=RTW0EX4pmfW8VPwXhVG3R6oaLUNaCJebirT5f8TYFj0=;
b=kcp8x729JfvUA93OusFleF/SD7G4xv92eo8F+0m6MtqW0ffWR/JKL21wlXECm4fdaE
wKkEr0P5rhEd6kNVSv0oiJraZhloKH6uA/qIZNIXnJMoVGcDENZcI5KlguzylIb4d5PQ
+ApKJ/dcfFiyFQOv8fiVTb/d1r0aeqAiK8cPsiyQdiU6T1wCdianoLWj/IkQtViSXTbU
WrrQ5z8ZQEIRqq8LMWUK0wep9THXHHV/iysbYECmyXyqUX5ntu8+4cgM5nBawWrrJ8YL
gRrmEUlfVHhQvur4s6uYGU8pWuVSAbHBq3C3keivwP7d5calYAAD2EZs8OXN5U1F8kPU
gWwQ==
X-Gm-Message-State: APuU4Z/5oyUad/jxOMu5+NoYLxKARHP+nJFdzurMz+6Dyr6utwdkT4Kl
uPgXUn0DavrRz12uWGng+Ewan/E+L/2y63BENk05zGW0Vq4E0TgRT5LsplchNbk3XDXMMNEBEo3
4rvz7kVsqwKdMgyD2oJpn8u3m+Mu5cS9lL401
X-Gm-Gg: AYBFou12VvKJk9d0Z6MGg7xU17ikshQajDXkfxR/tiNrh3whY5K/G5xUNBi9NNesE6R
fk8TFhL1ZhRCCqHQt+uF12rksU4TuV5vLB9ITElaoRqbLtzottzYfqnha7bfJlQWcGkTi8YHkvO
9MtfN9HUA7BbnixEB1Vnr7gIhMMFFhLLSy6GxY8CM1bAV8a/VnbIWD9SrVBk4xSj4yVq7+PAp2u
5ET0dR7HfdzTP8BbmxuunETAZqTEdEwTRuYzYCmd/r5Q3nkKh4A+2EQ3sk/kaR/IJTPxcVKlYub
WJy8vr76Jk3Hw1eTolXwTFp9OSO8ZGwftnDdfRSWDu313VZKJMRiRh+oc1Z++yzGGXLapB8AaYA
vwyxPz6aD5spwkFh5hPT0wztMzxMVWmMuveIL
Precedence: list
In-Reply-To: <CAM5tNy5SkZsO5meJVVC2wfu767f3cJ+ZyHbTceik1Z8XL59s2A@mail.gmail.com>
X-Gm-Features: AclHuK8at5t8j4xkO6RUH_XbjHmP2F1MLGFCdI8_3FtCQl06KSM4nTLX0brCPOc
X-Rspamd-Queue-Id: 4jPDFP66yzz4tPk
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];
ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
MISSING_XM_UA(0.00)[];
FREEMAIL_FROM(0.00)[gmail.com];
RCVD_COUNT_ONE(0.00)[1];
FREEMAIL_ENVFROM(0.00)[gmail.com];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
RCPT_COUNT_ONE(0.00)[1];
MIME_TRACE(0.00)[0:+];
MID_RHS_MATCH_FROMTLD(0.00)[];
RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12f:from];
TO_MATCH_ENVRCPT_ALL(0.00)[];
FROM_EQ_ENVFROM(0.00)[];
FROM_HAS_DN(0.00)[];
RCVD_TLS_LAST(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
ALIAS_RESOLVED(0.00)[];
TO_DN_ALL(0.00)[];
MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
DKIM_TRACE(0.00)[gmail.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes