Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2024 03:34:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277878] net/samba419: Function not implemented facl(ACE_GETACLCNT, filename) with vfs_zfsacl
Message-ID:  <bug-277878-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277878

            Bug ID: 277878
           Summary: net/samba419: Function not implemented
                    facl(ACE_GETACLCNT, filename) with vfs_zfsacl
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mikael@FreeBSD.org
          Reporter: ykasap@gmail.com
          Assignee: mikael@FreeBSD.org
             Flags: maintainer-feedback?(mikael@FreeBSD.org)

I tried to update my Samba server on my FreeBSD 14.0-STABLE server from
net/samba416 to net/samba419 (from samba416-4.16.11_4 to samba419-4.19.5_1)
with pkg.
After the update, some operations from my Windows 11 client started to fail.
I can create a file but cannot change the filename or modify the file conte=
nts.

The "log.hostname" log file reports a lot of similar errors concatenated
without line breaks like this (while testing with "tmp/test.txt" on the sha=
re):

  facl(ACE_GETACLCNT, .): Function not implemented facl(ACE_GETACLCNT, .):
Function not implemented facl(ACE_GETACLCNT, .): Function not implemented
facl(ACE_GETACLCNT, .): Function not implemented facl(ACE_GETACLCNT, .):
Function not implemented facl(ACE_GETACLCNT, tmp): Function not implemented
facl(ACE_GETACLCNT, tmp): Function not implemented facl(ACE_GETACLCNT, .):
Function not implemented facl(ACE_GETACLCNT, .): Function not implemented
facl(ACE_GETACLCNT, .): Function not implemented facl(ACE_GETACLCNT, tmp):
Function not implemented facl(ACE_GETACLCNT, tmp): Function not implemented
facl(ACE_GETACLCNT, tmp): Function not implemented facl(ACE_GETACLCNT, tmp):
Function not implemented facl(ACE_GETACLCNT, tmp): Function not implemented
facl(ACE_GETACLCNT, tmp): Function not implemented facl(ACE_GETACLCNT,
tmp/test.txt): Function not implemented facl(ACE_GETACLCNT, .): Function not
implemented facl(ACE_GETACLCNT, tmp/test.txt): Function not implemented
facl(ACE_GETACLCNT, tmp): Function not implemented facl(ACE_GETACLCNT, .):
Function not implemented facl(ACE_GETACLCNT, tmp/test.txt): Function not
implemented facl(ACE_GETACLCNT, tmp/test.txt): Function not implemented
facl(ACE_GETACLCNT, tmp/test.txt): Function not implemented facl(ACE_GETACL=
CNT,
tmp/test.txt): Function not implemented facl(ACE_GETACLCNT, tmp/test.txt):
Function not implemented facl(ACE_GETACLCNT, tmp/test.txt): Function not
implemented facl(ACE_GETACLCNT, tmp/test.txt): Function not implemented
facl(ACE_GETACLCNT, tmp/test.txt): Function not implemented facl(ACE_GETACL=
CNT,
tmp/test.txt): Function not implemented open_file: Could not set fd to
blocking: Bad file descriptor

I'm using vfs_zfsacl with a ZFS dataset for the share.
An essential part of my smb4.conf is as follows (some network configuration
with IP addresses is omitted):

------------
[global]
        log file =3D /var/log/samba4/log.%m
        log level =3D 1

        security =3D user
        local master =3D no
        invalid users =3D root=20=20=20=20
        dns proxy =3D no
        mdns name =3D mdns

        min protocol =3D SMB3
        smb encrypt =3D required
        unix extensions =3D no

[homes]
        strict allocate =3D no

        path =3D /usr/home/%S/samba
        writable =3D yes
        valid users =3D %S
        browseable =3D no
        guest ok =3D no
        read only =3D no
        follow symlinks =3D yes
        wide links =3D yes

        ea support =3D yes

        vfs objects =3D zfsacl streams_xattr
        nfs4:mode =3D simple
        nfs4:acedup =3D merge

        streams_xattr:prefix =3D user.
        streams_xattr:store_stream_type =3D no

        map archive =3D no
        dos filemode =3D yes
        map acl inherit =3D yes
------------

I use the same smb4.conf for samba416 and have no such problems. vfs_zfsacl=
.c
in net/samba419 is patched by
files/0100-Fix-pathref-handling-for-FreeBSD-13plus.patch, which does not ex=
ist
in net/samba416.
I believe the patched part emitted these error messages.=20

% uname -a
FreeBSD elvenbow.nc.kyushu-u.ac.jp 14.0-STABLE FreeBSD 14.0-STABLE #4
stable/14-n266915-8d22744f5be1: Thu Feb 29 14:25:53 JST 2024=20=20=20=20
root@elvenbow.nc.kyushu-u.ac.jp:/usr/obj/usr/src/amd64.amd64/sys/ELVENBOW a=
md64

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277878-7788>