🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.hackers
Article #97

Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?

#97
From: Sebastian Feld
Date: Mon, 16 Nov 2026 14:43
72 lines
8617 bytes
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.

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: <CAHnbEGLbPegqP7Ca2xDG7kptU8_VxJOq3PVp0oiwqaj8ypyWJg@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <CAHnbEGLEY-7mOTG=DQjhVVFX9Du6dEJhOJSHGOLKzw4t4KFgRA@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!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: Mon, 16 Nov 2026 15:43:01 +0100
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAHnbEGLbPegqP7Ca2xDG7kptU8_VxJOq3PVp0oiwqaj8ypyWJg@mail.gmail.com>
References: <> <CAHnbEGLEY-7mOTG=DQjhVVFX9Du6dEJhOJSHGOLKzw4t4KFgRA@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="51191"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794840224;
	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=8YfYVkVBXvM59tQGJj36GDuJUY+pmp/PK3hFnJqx020=;
	b=CTPpbf4TFulXRrXdoZE90MIPC+PVUVr0RzdDfNILTVc7oc0EZ/iJkXJvbZhRa8GMbgpK2p
	5bLia34YcFZLrcEDjd5YmWrY4jzyN9oE2VIcaV3khN4/ASIxHcBtMSKdwSUwHXudk/ESxE
	cU00azt9G3+TLnR7o5kc/wwLSpY1RmY7avIeaKQezYfmL/GFjr2DkMWNkFES0Otx03KuUZ
	uXdjVYH34kNUNeqffNEU6gPsggWeYAsgBzzQVPuiLGyfCEI+LxDrsJkPI59bH8t4Opbgml
	d/SgGh8W0EIDmcfHtrkZxDQgCd883ElZ9pN/goJc/5j7aFr4wUv1YsDmFY4EBw==
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=GUeqqueM;
	spf=pass (mx1.freebsd.org: domain of sebastian.n.feld@gmail.com designates 2a00:1450:4864:20::12b 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=1794840219; x=1795445019; 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=8YfYVkVBXvM59tQGJj36GDuJUY+pmp/PK3hFnJqx020=;
        b=GUeqqueM0mx2MO0n41sLqozUXY2syKtg175sHNt2gSsc2GRYjRPzGF8jAC4s70tB9i
         ZG/O/Y4eo4fc/o9Lc0OiriwXA+43bw9tlu/yRI4XpUhuhJxoFzZ+sfEaE8e3YeNU/dtY
         yoEjjwUWZq7z21ZvEvrQVVxYjQdy4Lejb3hFzInR3JFM82Qj4RBgSpMdUFJhl2xOlosz
         zel8BPk2eiioDblhQGbZsMDjDKTqf/yk4xWUMGPk01SO1IriXv8HZp7IEHFza/1W99j7
         eH42Q9F1xKla0exPo6q7mv2bwE86DRupkKMFaLMFfjyMymnBBDVSSUnsHigbuXfK13NJ
         fB/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794840219; x=1795445019;
        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=8YfYVkVBXvM59tQGJj36GDuJUY+pmp/PK3hFnJqx020=;
        b=dKchjbg7TdwdOdaN3c7cFXRxSzqZcRpw5aLkLVV8Fy+2ZRNzZtRXB7KRIpQlk1UMxN
         h4RSEo6huRsacH6W/O6RgHtboQ1h8AEg1fBOBBHcOFKbRDGGYd6KgCLQJeVwPQraWgsl
         nPhljlEbjFcqRuBCv5Wo9SizCJAMb3L2ebTp5FRX+rMz6rwyQdHDvhMrtYmHfanAuNVq
         4I6pgNwCEeLmAe7N3K5WAn8Y8X85OLXw0d4eVOQCtI3as9yA4ZZUAXFBLniyxJ8i/9h9
         7mxxelukX0qBwKzPM2i1XUebv3swEpOFSKgG3zlGWm5uAlBGlP14dlRx8r+T5ROuaLJo
         bwQA==
X-Gm-Message-State: APuU4Z8pZ0h59H4skXcvXNuFIaEPvnT1teWsSKnVO8rFDx8bwn05dUBs
	gw7+xofnj99o9u3pj/hefECWTO5w51rDsGhsH4PC/arvVgkBMOuWUnx57xvBn3Oe3nb7Y9TC4sP
	vZ7UCWfRnJGt9zyEE7/xFvSPpceJmNuir1w1/mCg=
X-Gm-Gg: AYBFou1qqXHMlQlmbTYG/GKV5jOB1/iIbb4FRrHlh+bQXaGTOR+mgzQSov99Raj5QcA
	t+D0uf6aBf8fbnfCIVTeHgHxfphFGFwLfz5FQlpyxSZJe109Mi8LUH4YWk79Opg7NHhjNTkKAzL
	D/7T0BKApdec5QVT7aGTyD+pursuSZRkVyNb3HpcDyRqNf0HRJuBkwtk73fVmjrNhVDiZdmI4au
	NnAihn7Jcoh4Inw4yksuxhQGbgqDdsmn35QVaVerGNNLuOkODinDKmE0k7XCViM+m75K9Bo+CQJ
	EulhBE0jRQqMgJlI3967Hj81FpG+MSav5TIjV0nUzpIx2Ku4rjp3YndFFN/zS6fR8ZzPaevSYdT
	A2MJ4PYefklUzYLcqNByGCI9RkcHQBhoD7bNY
Precedence: list
In-Reply-To: <CAHnbEGLEY-7mOTG=DQjhVVFX9Du6dEJhOJSHGOLKzw4t4KFgRA@mail.gmail.com>
X-Gm-Features: AclHuK9h_yVkwvzKbkw-IEB9oZMalnpqBDFgp9wSyLSxF5AMNU0Od0apf8sWQEc
X-Rspamd-Queue-Id: 4jSrG62h9yz4LHv
X-Spamd-Bar: /
X-Spamd-Result: default: False [-1.00 / 15.00];
	SUBJECT_ENDS_QUESTION(1.00)[];
	ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
	DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
	R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4864::/56:c];
	R_DKIM_ALLOW(-0.20)[gmail.com:s=20260707];
	MIME_GOOD(-0.10)[text/plain];
	ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
	RCPT_COUNT_ONE(0.00)[1];
	RCVD_COUNT_ONE(0.00)[1];
	MISSING_XM_UA(0.00)[];
	MIME_TRACE(0.00)[0:+];
	FREEMAIL_ENVFROM(0.00)[gmail.com];
	FREEMAIL_FROM(0.00)[gmail.com];
	DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12b: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