[Bug 271704] O_PATH and acl_get_fd_np doesn't work on FreeBSD 13(.2) and causes vfs_zfsacl in Samba to fail

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 May 2023 08:46:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271704

--- Comment #5 from Peter Eriksson <pen@lysator.liu.se> ---
Did a quick test with Samba and a FreeBSD 13.2-RELEASE kernel modified with the
fix for acl_get_fd and now I can create new directories and read the ACL of it.
But attempting to modify the ACL from a Windows 10 client fails with:

> An error occured while applying security information to:
> 
> T:\}foo
> 
> The handle is invalid.

As a test I modified the kernel a bit more and made similar changes to
acl_set_fd and acl_delete_fd and now it works to update the ACL from the
Windows client.

So as the Samba code works today it looks like it needs to be update ACLs via
O_PATH-opened file descriptors.

-- 
You are receiving this mail because:
You are the assignee for the bug.