Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 2017 17:16:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216239] samba shadow_copy gets access denied while accessing .zfs/snapshot
Message-ID:  <bug-216239-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 216239
           Summary: samba shadow_copy gets access denied while accessing
                    .zfs/snapshot
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: wkg21@cam.ac.uk

I am using vfs shadow_copy2 and zfsacl to have acl and previous versions of
files and didrectories. but when i try to check previous version of file  or
directory I'm getting this error:=20

  CUL+user1 closed file somefolder/New Microsoft Access Database.accdb
(numopen=3D3) NT_STATUS_OK
[2017/01/18 11:31:04.969851,  0]
../source3/modules/vfs_shadow_copy2.c:1220(check_access_snapdir)
  user does not have list permission on snapdir /dataPool/test/.zfs/snapshot
[2017/01/18 11:31:04.970005,  0]
../source3/modules/vfs_shadow_copy2.c:1389(shadow_copy2_get_shadow_copy_dat=
a)
  access denied on listing snapdir /dataPool/test/.zfs/snapshot
[2017/01/18 11:31:04.970083,  0]
../source3/modules/vfs_default.c:1197(vfswrap_fsctl)
  FSCTL_GET_SHADOW_COPY_DATA: connectpath /dataPool/test, failed -
NT_STATUS_ACCESS_DENIED.
[2017/01/18 11:31:04.970177,  3]
../source3/smbd/smb2_server.c:3098(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_ioctl.c:309

more verbose:

  ../source3/modules/vfs_shadow_copy2.c:245: enter path
'/dataPool/test/.zfs/snapshot'
[2017/01/18 11:55:33.012508,  9, pid=3D33244, effective(12576, 10513), real=
(0,
0), class=3Dvfs] ../source3/modules/vfs_zfsacl.c:56(zfs_get_nt_acl_common)
  acl(ACE_GETACLCNT, /dataPool/test/.zfs/snapshot): Operation is not suppor=
ted
on the filesystem where the file reside
[2017/01/18 11:55:33.012546, 10, pid=3D33244, effective(12576, 10513), real=
(0,
0)] ../source3/smbd/open.c:131(smbd_check_access_rights)
  smbd_check_access_rights: Could not get acl on /dataPool/test/.zfs/snapsh=
ot:
NT_STATUS_NOT_SUPPORTED
[2017/01/18 11:55:33.012589,  0, pid=3D33244, effective(12576, 10513), real=
(0,
0)] ../source3/modules/vfs_shadow_copy2.c:1221(check_access_snapdir)
  user does not have list permission on snapdir /dataPool/test/.zfs/snapshot
[2017/01/18 11:55:33.012651,  0, pid=3D33244, effective(12576, 10513), real=
(0,
0)]
../source3/modules/vfs_shadow_copy2.c:1390(shadow_copy2_get_shadow_copy_dat=
a)
  access denied on listing snapdir /dataPool/test/.zfs/snapshot
[2017/01/18 11:55:33.012702,  0, pid=3D33244, effective(12576, 10513), real=
(0,
0), class=3Dvfs] ../source3/modules/vfs_default.c:1189(vfswrap_fsctl)
  FSCTL_GET_SHADOW_COPY_DATA: connectpath /dataPool/test, failed -
NT_STATUS_ACCESS_DENIED.
[2017/01/18 11:55:33.012773, 10, pid=3D33244, effective(12576, 10513), real=
(0,
0)] ../source3/smbd/smb2_ioctl.c:291(smbd_smb2_request_ioctl_done)
  smbd_smb2_request_ioctl_done: smbd_smb2_ioctl_recv returned 0 status
NT_STATUS_ACCESS_DENIED
[2017/01/18 11:55:33.012818, 10, pid=3D33244, effective(12576, 10513), real=
(0,
0)] ../source3/smbd/smb2_server.c:2789(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at
../source3/smbd/smb2_ioctl.c:309
[2017/01/18 11:55:33.012863, 10, pid=3D33244, effective(12576, 10513), real=
(0,
0)] ../source3/smbd/smb2_server.c:2680(smbd_smb2_request_done_ex)
  smbd_smb2_request_done_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] body[8]
dyn[yes:1] at ../source3/smbd/smb2_server.c:2837
[2017/01/18 11:55:33.012910, 10, pid=3D33244, effective(12576, 10513), real=
(0,
0)] ../source3/smbd/smb2_server.c:906(smb2_set_operation_credit)
  smb2_set_operation_credit: requested 1, charge 1, granted 1, current
possible/max 386/512, total granted/max/low/range 127/8192/46/127


I using using samba44: 4.4.8_1 installed with pkg. I have checked samba43 a=
nd
samba42 and these verion also have this problem.

# SHARE conf
[test]
    comment =3D Test share
    path =3D /dataPool/test
    browseable =3D yes
    read only =3D no
    valid users =3D user1, user2, user3
    guest ok =3D no
    create mask =3D 0664
    directory mask =3D 0775
    vfs objects =3D shadow_copy2 zfsacl
    shadow: snapdir =3D .zfs/snapshot
    shadow: sort =3D desc
    shadow: localtime =3D yes
    shadow: format =3D zfs-auto-snap_%Y-%m-%d-%H%M
    nfs4:mode =3D simple
    nfs4:acedup =3D merge
    nfs4:chown =3D yes
    map acl inherit =3D Yes
    store dos attributes =3D Yes

--=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-216239-13>