From owner-freebsd-ports-bugs@freebsd.org Wed Jan 18 17:16:29 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BB0ACB6C26 for ; Wed, 18 Jan 2017 17:16:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01DA01679 for ; Wed, 18 Jan 2017 17:16:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0IHGSFL096060 for ; Wed, 18 Jan 2017 17:16:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216239] samba shadow_copy gets access denied while accessing .zfs/snapshot Date: Wed, 18 Jan 2017 17:16:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: wkg21@cam.ac.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 17:16:29 -0000 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.=