🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.hackers
6 messages
6 total messages Started by Joshuah Hurst Mon, 02 Nov 2026 18:00
Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
#73
Author: Joshuah Hurst
Date: Mon, 02 Nov 2026 18:00
34 lines
7093 bytes
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?

Josh


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
#79
Author: Rick Macklem
Date: Mon, 02 Nov 2026 20:44
56 lines
7988 bytes
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?)

The client side for FreeBSD..I have no idea what needs to be done to
make automatic
inheritance work and have no interest in figuring out how to do it.
--> In other words, for this to happen, someone else needs to figure it
     out and come up with patches.

rick

>
> Josh
>


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
#93
Author: Sebastian Feld
Date: Tue, 10 Nov 2026 17:29
64 lines
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
Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
#97
Author: 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
Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
#98
Author: Rick Macklem
Date: Mon, 16 Nov 2026 19:45
95 lines
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
Re: ZFS ACL suggestion for NFS exports valid for FreeBSD?
#99
Author: Sebastian Feld
Date: Mon, 16 Nov 2026 23:31
104 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads