Article View: muc.lists.freebsd.hackers
Article #98Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
From: Rick Macklem
Date: Mon, 16 Nov 2026 19:45
Date: Mon, 16 Nov 2026 19:45
95 lines
9519 bytes
9519 bytes
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 > > 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:
<CAM5tNy4afLEN88Z3e3OtfwgintarfCqaf-yLwEz-LYZu2BSSEg@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<CAHnbEGLbPegqP7Ca2xDG7kptU8_VxJOq3PVp0oiwqaj8ypyWJg@mail.gmail.com> <>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Rick Macklem <rick.macklem@gmail.com>
Newsgroups: muc.lists.freebsd.hackers
Subject: Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
Date: Mon, 16 Nov 2026 12:45:27 -0700
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAM5tNy4afLEN88Z3e3OtfwgintarfCqaf-yLwEz-LYZu2BSSEg@mail.gmail.com>
References: <CAHnbEGLbPegqP7Ca2xDG7kptU8_VxJOq3PVp0oiwqaj8ypyWJg@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="70646"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1794858346;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc: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=15DSadNy7e3IwCqxgazxUBJWkxdjMMHhU0uoLFDh9hE=;
b=EtoxOisVTRDBY/+oLfi0XcU1fR2YHqdool3OluQ8+i4jaUgr8DvXVzusnGy9PvpOql4o0w
TEy2CE2Cz3SoQ8IxqUk6sNGD0pYaGOTMBvRZMkB1Z+sCneGdP+9r9zPwwcSG86ZtY2zr74
Eo90+3yX0ahOWMBv5AcyKpg824a9il+xFhDOviNthvzr4iHQHeXBahM5s43psoVk4XcfNZ
UMrooR7VdQ89FrWNK6r00Lw/xYsvQSgNdoHO2ETBkeVk7FcUNhy7V08ObmQV/z8udnDEcK
9o1oSQUsVHrWLPkstGHE5Xq+Kj2MH4SH6vUE38qJC3CTZSjPyTYCMFbySsvqsg==
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=vanzP1kt;
spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=rick.macklem@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=1794858340; x=1795463140; darn=freebsd.org;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=15DSadNy7e3IwCqxgazxUBJWkxdjMMHhU0uoLFDh9hE=;
b=vanzP1ktGD5mil3vXLuJMpWWLA4wFP/47bSfJtwM4YAHZjmFIj+2RlyWJHmEZMNJGj
QG/8b/PDsdbjcOKFIS1gfgtr5cOSekDtMyNJ3LcUB4mJ5NkILvJEsjYVHlGHZCAUq/tI
DaIKolva23BifffBI48aND8yFdRjugk4mSQlWMxZGp2Ofjw3rWCLElXbSmp4NHWg/1GK
gprQ6LyKbFQUZHsp8++/y+9veUEO4cD1bk9TXM4qYDB1FYLn3rwCYflU/Fyv+wu4gmsa
YgeobElm5YojRmt2+eqpoPimjuBOr3J11kZPxku6fsUyDY2u5WMBvT87apY+BJz9Bmm7
Jnhw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794858340; x=1795463140;
h=content-transfer-encoding:content-type:cc: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=15DSadNy7e3IwCqxgazxUBJWkxdjMMHhU0uoLFDh9hE=;
b=btyCDNJm087Wz6W/5WXxLl95Yjm7PcE60/aSR6x0iLiwOVc6AhrxoDLN/SG+vRTIlC
BQK1b7LkmtW7ZVTVOvp9NjHS1vq1nKwAob/07f67eiOV7SwV+7lwQ1o7zjLfACWPaFnK
GQYpGh52fJdRHobnLJG2uetsl3uhe3iFADmwyfNmuwalU5hJsDXqTMYz3IurIRXIyyeS
5ielny/oiNcE360CUtdVsmcKMUpdGsMtnNbJy+3jDCD5l7tMpv22NfgK9jf42UHJonfE
/FZjs57Y8taMu7LvMOOnXDLYWw/V/Om0Tf6EFe0FG1INl/LGPZ3cM0Dy6Vt3xaMLh0bM
lrCA==
X-Gm-Message-State: APuU4Z9TENl22X7r2MgpIOeH0iw5IjWWKhtlKq5800+G9Ed5EtYEtUN3
w+DoWaG6KBwYWHjD9R1/dA9RcaPNWDDmvnrK3cgGTC6e9aFfTr9/UJTTkfffFOfGIPuaZXybegT
xHzDg5BHdx+rmSjaf+UiexDpgIR6qHgXy
X-Gm-Gg: AYBFou3NYKaXmkZ3MpRqNMhtZt91WPQOjTzH/Uyrfmv3/4tj5QaMWzg5nNIQeoWsGnL
2xhfi9K+ZSx+s7yfWJ5512CTFXVR0VvT6TWzfuJWYw1vzm5p2Cyi+6x4eiTXNNajfidT9uWEozc
qudna1i9NQwSuAi9N5qIaZdItWBa3CiP14JmG+K5+3LJY7FHFUttaResYlze8W2QWmK7XNBez1i
/uhWCy5Ob09sNFfxfEhnqw6r9RtvhzlkfwQBrYaKhi+OPZC6MEvR6XH474HCvaiZuem94DcF8aq
L1sneG3zT8Z3//S1GNlt/ryEQ9fEbwSPmdflxTxiqHbzx4Azaybf0UUsatzbYP2zcvSsLpgIhDI
Fq6kGvQI5oNA8SqxeKW/1jQ==
Precedence: list
In-Reply-To: <CAHnbEGLbPegqP7Ca2xDG7kptU8_VxJOq3PVp0oiwqaj8ypyWJg@mail.gmail.com>
X-Gm-Features: AclHuK-M1tLhnkiUrCF1522dVSfOf5FK6t4qfQ1p96T5vrrLZhR1mTP348JWsnw
X-Rspamd-Queue-Id: 4jSyyb2G7Fz4ffF
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];
TO_DN_ALL(0.00)[];
RCVD_TLS_LAST(0.00)[];
FROM_HAS_DN(0.00)[];
FREEMAIL_TO(0.00)[gmail.com];
FREEMAIL_ENVFROM(0.00)[gmail.com];
RCPT_COUNT_TWO(0.00)[2];
FREEMAIL_FROM(0.00)[gmail.com];
MIME_TRACE(0.00)[0:+];
DKIM_TRACE(0.00)[gmail.com:+];
RCVD_COUNT_ONE(0.00)[1];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
TO_MATCH_ENVRCPT_SOME(0.00)[];
FROM_EQ_ENVFROM(0.00)[];
MISSING_XM_UA(0.00)[];
ALIAS_RESOLVED(0.00)[];
MID_RHS_MATCH_FROMTLD(0.00)[];
MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52f:from]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes