[Samba] O_PATH, FreeBSD & acl_xx_fd

Peter Eriksson pen at lysator.liu.se
Tue May 30 07:57:37 UTC 2023


I’ve been looking at an issue when compiling Samba on FreeBSD 13 with the vfs_zfsacl module.

It seems the logic that detect O_PATH support in Samba doesn’t work right with FreeBSD 13 (since it has implemented O_PATH support) and especially with the acl_get_fd() function. This is a bug (or rather a missing feature) in FreeBSD that there is a patch for now (dunno when it’ll appear in a release version). 

However, one question that has surfaced is if Samba also requires support to change/set ACLs via O_PATH-opened file descriptors? I’m trying to test things but figured I’d put this here too if someone with more internal knowledge of the Samba VFS O_PATH-related stuff knows :-)


https://bugzilla.samba.org/show_bug.cgi?id=15376

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271704

- Peter



More information about the samba mailing list