Configuring CIFS mount with cifsacl - STATUS_NONE_MAPPED
Subsystems (2)
Hello,
I am attempting to mount a CIFS share (SMB 1.0) onto an Ubuntu 14.04 client. I would like to be able to map ACLs using the "cifsacl" mount option. The server is an OpenIndiana server using the smb/server CIFS server (with ZFS as the underlying filesystem).
Client Kernel Version: 3.13.0-24-generic
Client mount.cifs version: 6.0
I have verified that my kernel has been compiled with CIFS_XATTR and CIFS_ACL:
$ grep CIFS /boot/config-3.13.0-24-generic CONFIG_CIFS=m CONFIG_CIFS_STATS=y # CONFIG_CIFS_STATS2 is not set CONFIG_CIFS_WEAK_PW_HASH=y CONFIG_CIFS_UPCALL=y CONFIG_CIFS_XATTR=y CONFIG_CIFS_POSIX=y CONFIG_CIFS_ACL=y CONFIG_CIFS_DEBUG=y # CONFIG_CIFS_DEBUG2 is not set CONFIG_CIFS_DFS_UPCALL=y CONFIG_CIFS_SMB2=y CONFIG_CIFS_FSCACHE=y
I have already configured winbind (getent passwd works and I verified that cifs.idmap is set up in /etc/request-key.d/cifs.idmap.conf. I am able to mount the share successfully, however when I attempt to list the contents of a directory, I receive output like this:
ls: cannot access /mnt/Test/one: Input/output error
ls: cannot access /mnt/Test/two: Input/output error
ls: cannot access /mnt/Test/three: Input/output error
total 0
d????????? ? ? ? ? ? one d????????? ? ? ? ? ? two d????????? ? ? ? ? ? three
Here are the ACLs I have set on these directories:
A:d:OWNER@:rwaDdxtTnNcCoy
A:fi:OWNER@:rwaDdtTnNcCoy
A:dg:Domain [email protected]:rwaDdxtTnNcCoy A:fig:Domain [email protected]:rwaDdtTnNcCoy A:dg:GROUP@:rxtncy
A:fig:GROUP@:rtncy
D:d:EVERYONE@:rwaDxtTcCy
Errors in dmesg:
[Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -13 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 getting sec desc
I also grabbed the contents /f proc/fs/cifs/DebugData:
$ cat /proc/fs/cifs/DebugData
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 2.02
Features: dfs fscache lanman posix spnego xattr acl
Active VFS Requests: 0
Servers:
1) Name: 192.168.0.33 Domain: TEST Uses: 1 OS: Windows 2000
NOS: Windows 2000 LAN Manager Capability: 0xf3fc
SMB session status: 1 TCP status: 1
Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
Shares:
1) \\test\Test Mounts: 1 Type: ZFS DevInfo: 0x20 Attributes: 0x4006e
PathComponentMax: 256 Status: 0x1 type: 9 MIDs:
I then enabled /proc/fs/cifs/cifsFYI and captured this sample debug:
http://pastebin.com/Xy23ws7m
I see the error is NT_STATUS_NONE_MAPPED, but it is unclear why this is failing. What else can I try to debug this CIFS mount?
Thanks,
Andrew Martin
A message that is not in the archive (sent off-list or not yet received): 982926402.71713.1416844711273.JavaMail.zimbra-AQeFf1F/[email protected]
Is it possible to provide a wireshark trace? I think there may be an error at the Samba/ZFS interaction/interface wrt to NTFS ACL.
If logging is enabled at the Samba server, is there any error logged by the Samba server?
Quoted 85 lines · Andrew Martin
Hello,
I am attempting to mount a CIFS share (SMB 1.0) onto an Ubuntu 14.04 client. I would like to be able to map ACLs using the "cifsacl" mount option. The server is an OpenIndiana server using the smb/server CIFS server (with ZFS as the underlying filesystem).
Client Kernel Version: 3.13.0-24-generic
Client mount.cifs version: 6.0
I have verified that my kernel has been compiled with
CIFS_XATTRandCIFS_ACL:$ grep CIFS /boot/config-3.13.0-24-generic CONFIG_CIFS=m CONFIG_CIFS_STATS=y # CONFIG_CIFS_STATS2 is not set CONFIG_CIFS_WEAK_PW_HASH=y CONFIG_CIFS_UPCALL=y CONFIG_CIFS_XATTR=y CONFIG_CIFS_POSIX=y CONFIG_CIFS_ACL=y CONFIG_CIFS_DEBUG=y # CONFIG_CIFS_DEBUG2 is not set CONFIG_CIFS_DFS_UPCALL=y CONFIG_CIFS_SMB2=y CONFIG_CIFS_FSCACHE=yI have already configured winbind (getent passwd works and I verified that cifs.idmap is set up in
/etc/request-key.d/cifs.idmap.conf. I am able to mount the share successfully, however when I attempt to list the contents of a directory, I receive output like this:
ls: cannot access/mnt/Test/one: Input/output error
ls: cannot access/mnt/Test/two: Input/output error
ls: cannot access/mnt/Test/three: Input/output error
total 0d????????? ? ? ? ? ? one d????????? ? ? ? ? ? two d????????? ? ? ? ? ? threeHere are the ACLs I have set on these directories:
A:d:OWNER@:rwaDdxtTnNcCoy
A:fi:OWNER@:rwaDdtTnNcCoy
A:dg:Domain [email protected]:rwaDdxtTnNcCoy A:fig:Domain [email protected]:rwaDdtTnNcCoy A:dg:GROUP@:rxtncy
A:fig:GROUP@:rtncy
D:d:EVERYONE@:rwaDxtTcCyErrors in dmesg:
[Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -13 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 getting sec descI also grabbed the contents /f proc/fs/cifs/DebugData:
$ cat /proc/fs/cifs/DebugData Display Internal CIFS Data Structures for Debugging --------------------------------------------------- CIFS Version 2.02 Features: dfs fscache lanman posix spnego xattr acl Active VFS Requests: 0 Servers: 1) Name: 192.168.0.33 Domain: TEST Uses: 1 OS: Windows 2000 NOS: Windows 2000 LAN Manager Capability: 0xf3fc SMB session status: 1 TCP status: 1 Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0 Shares: 1) \\test\Test Mounts: 1 Type: ZFS DevInfo: 0x20 Attributes: 0x4006e PathComponentMax: 256 Status: 0x1 type: 9MIDs:
I then enabled
/proc/fs/cifs/cifsFYIand captured this sample debug:
http://pastebin.com/Xy23ws7mI see the error is
NT_STATUS_NONE_MAPPED, but it is unclear why this is failing. What else can I try to debug this CIFS mount?Thanks,
Andrew Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CADT32eKWbwvuvr4mJObenG4vquuhkGX=zcjagEYnC8DzoGfZpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 89 lines · Andrew Martin
Quoted 88 lines
Hello,
I am attempting to mount a CIFS share (SMB 1.0) onto an Ubuntu 14.04 client. I
would like to be able to map ACLs using the "cifsacl" mount option. The server
is an OpenIndiana server using the smb/server CIFS server (with ZFS as the underlying filesystem).Client Kernel Version: 3.13.0-24-generic
Client mount.cifs version: 6.0
I have verified that my kernel has been compiled with
CIFS_XATTRandCIFS_ACL:$ grep CIFS /boot/config-3.13.0-24-generic CONFIG_CIFS=m CONFIG_CIFS_STATS=y # CONFIG_CIFS_STATS2 is not set CONFIG_CIFS_WEAK_PW_HASH=y CONFIG_CIFS_UPCALL=y CONFIG_CIFS_XATTR=y CONFIG_CIFS_POSIX=y CONFIG_CIFS_ACL=y CONFIG_CIFS_DEBUG=y # CONFIG_CIFS_DEBUG2 is not set CONFIG_CIFS_DFS_UPCALL=y CONFIG_CIFS_SMB2=y CONFIG_CIFS_FSCACHE=yI have already configured winbind (getent passwd works and I verified that cifs.idmap is set up in
/etc/request-key.d/cifs.idmap.conf. I am able to mount
the share successfully, however when I attempt to list the contents of a directory, I receive output like this:
ls: cannot access/mnt/Test/one: Input/output error
ls: cannot access/mnt/Test/two: Input/output error
ls: cannot access/mnt/Test/three: Input/output error
total 0d????????? ? ? ? ? ? one d????????? ? ? ? ? ? two d????????? ? ? ? ? ? threeHere are the ACLs I have set on these directories:
A:d:OWNER@:rwaDdxtTnNcCoy
A:fi:OWNER@:rwaDdtTnNcCoy
A:dg:Domain [email protected]:rwaDdxtTnNcCoy A:fig:Domain [email protected]:rwaDdtTnNcCoy A:dg:GROUP@:rxtncy
A:fig:GROUP@:rtncy
D:d:EVERYONE@:rwaDxtTcCyErrors in dmesg:
[Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -13 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 gettingsec desc
I also grabbed the contents /f proc/fs/cifs/DebugData:
$ cat /proc/fs/cifs/DebugData Display Internal CIFS Data Structures for Debugging --------------------------------------------------- CIFS Version 2.02 Features: dfs fscache lanman posix spnego xattr acl Active VFS Requests: 0 Servers: 1) Name: 192.168.0.33 Domain: TEST Uses: 1 OS: Windows 2000 NOS: Windows 2000 LAN Manager Capability: 0xf3fc SMB session status: 1 TCP status: 1 Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0 Shares: 1) \\test\Test Mounts: 1 Type: ZFS DevInfo: 0x20 Attributes: 0x4006e PathComponentMax: 256 Status: 0x1 type: 9MIDs:
I then enabled
/proc/fs/cifs/cifsFYIand captured this sample debug:
http://pastebin.com/Xy23ws7mI see the error is
NT_STATUS_NONE_MAPPED, but it is unclear why this is failing. What else can I try to debug this CIFS mount?Thanks,
Quoted 7 lines
Quoted 1 line
Andrew Martin
----- Original Message -----
From: "Shirish Pargaonkar" <[email protected]> Is it possible to provide a wireshark trace? I think there may be an error at the Samba/ZFS interaction/interface wrt to NTFS ACL.
If logging is enabled at the Samba server, is there any error logged by the Samba server?
Here is a Wireshark capture done when I attempt to ls the directory:
http://oss.xes-inc.com/xtmp/cifs_trace.pcapng
Note that 192.168.18.96 is the Ubuntu client, and 192.168.2.33 is the OpenIndiana server.
This is not a Samba server, but smb/server (the native Solaris CIFS server).
Thanks,
Andrew
A message that is not in the archive (sent off-list or not yet received): 1207991829.78949.1418059795674.JavaMail.zimbra-AQeFf1F/[email protected]
Not sure what to make out of the error STAUS_NONE_MAPPED! That error is not returned by the Solaris cifs server in response to all of the NT QUERY SECURITY DESCRIPTOR requests from cifs client but only for some (e.g. the error is returned for security descriptor query for \CMM but not for \ssd)
Quoted 108 lines · Andrew Martin
Quoted 89 lines · Andrew Martin
Quoted 88 lines
Hello,
I am attempting to mount a CIFS share (SMB 1.0) onto an Ubuntu 14.04 client. I
would like to be able to map ACLs using the "cifsacl" mount option. The server
is an OpenIndiana server using the smb/server CIFS server (with ZFS as the underlying filesystem).Client Kernel Version: 3.13.0-24-generic
Client mount.cifs version: 6.0
I have verified that my kernel has been compiled with
CIFS_XATTRandCIFS_ACL:$ grep CIFS /boot/config-3.13.0-24-generic CONFIG_CIFS=m CONFIG_CIFS_STATS=y # CONFIG_CIFS_STATS2 is not set CONFIG_CIFS_WEAK_PW_HASH=y CONFIG_CIFS_UPCALL=y CONFIG_CIFS_XATTR=y CONFIG_CIFS_POSIX=y CONFIG_CIFS_ACL=y CONFIG_CIFS_DEBUG=y # CONFIG_CIFS_DEBUG2 is not set CONFIG_CIFS_DFS_UPCALL=y CONFIG_CIFS_SMB2=y CONFIG_CIFS_FSCACHE=yI have already configured winbind (getent passwd works and I verified that cifs.idmap is set up in
/etc/request-key.d/cifs.idmap.conf. I am able to mount
the share successfully, however when I attempt to list the contents of a directory, I receive output like this:
ls: cannot access/mnt/Test/one: Input/output error
ls: cannot access/mnt/Test/two: Input/output error
ls: cannot access/mnt/Test/three: Input/output error
total 0d????????? ? ? ? ? ? one d????????? ? ? ? ? ? two d????????? ? ? ? ? ? threeHere are the ACLs I have set on these directories:
A:d:OWNER@:rwaDdxtTnNcCoy
A:fi:OWNER@:rwaDdtTnNcCoy
A:dg:Domain [email protected]:rwaDdxtTnNcCoy A:fig:Domain [email protected]:rwaDdtTnNcCoy A:dg:GROUP@:rxtncy
A:fig:GROUP@:rtncy
D:d:EVERYONE@:rwaDxtTcCyErrors in dmesg:
[Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -13 getting sec desc [Fri Nov 21 18:57:03 2014] CIFS VFS: cifs_acl_to_fattr: error -5 gettingsec desc
I also grabbed the contents /f proc/fs/cifs/DebugData:
$ cat /proc/fs/cifs/DebugData Display Internal CIFS Data Structures for Debugging --------------------------------------------------- CIFS Version 2.02 Features: dfs fscache lanman posix spnego xattr acl Active VFS Requests: 0 Servers: 1) Name: 192.168.0.33 Domain: TEST Uses: 1 OS: Windows 2000 NOS: Windows 2000 LAN Manager Capability: 0xf3fc SMB session status: 1 TCP status: 1 Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0 Shares: 1) \\test\Test Mounts: 1 Type: ZFS DevInfo: 0x20 Attributes: 0x4006e PathComponentMax: 256 Status: 0x1 type: 9MIDs:
I then enabled
/proc/fs/cifs/cifsFYIand captured this sample debug:
http://pastebin.com/Xy23ws7mI see the error is
NT_STATUS_NONE_MAPPED, but it is unclear why this is failing. What else can I try to debug this CIFS mount?Thanks,
Quoted 7 lines
Quoted 1 line
Andrew Martin
----- Original Message -----
From: "Shirish Pargaonkar" <[email protected]> Is it possible to provide a wireshark trace? I think there may be an error at the Samba/ZFS interaction/interface wrt to NTFS ACL.
If logging is enabled at the Samba server, is there any error logged by the Samba server?Here is a Wireshark capture done when I attempt to ls the directory:
http://oss.xes-inc.com/xtmp/cifs_trace.pcapngNote that 192.168.18.96 is the Ubuntu client, and 192.168.2.33 is the OpenIndiana server.
This is not a Samba server, but smb/server (the native Solaris CIFS server).
Thanks,
Andrew
A message that is not in the archive (sent off-list or not yet received): CADT32e+Sx-qv1yKZy-WGjwFwnok0vS4hR=PX+1Ke1x9RjFH8Yw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
----- Original Message -----
Quoted 6 lines
From: "Shirish Pargaonkar" <[email protected]>
To: "Andrew Martin" <amartin-AQeFf1F/[email protected]>
Cc: "linux-cifs" <[email protected]>
Sent: Wednesday, December 10, 2014 12:04:30 AM
Subject: Re: Configuring CIFS mount with cifsacl -STATUS_NONE_MAPPED
Quoted 6 lines
Not sure what to make out of the error
STAUS_NONE_MAPPED! That error is not returned by the Solaris cifs server in response to all of the NT QUERY SECURITY DESCRIPTOR requests from cifs client but only for some (e.g. the error is returned for security descriptor query for \CMM but not for \ssd)
Both \CMM and \ssd have the same set of ACLs applied to them:
A:d:OWNER@:rwaDdxtTnNcCoy
A:fi:OWNER@:rwaDdtTnNcCoy
A:dg:Domain Users-sLNbH/[email protected]:rwaDdxtTnNcCoy A:fig:Domain Users-sLNbH/[email protected]:rwaDdtTnNcCoy A:dg:GROUP@:rxtncy
A:fig:GROUP@:rtncy
D:d:EVERYONE@:rwaDxtTcCy
I noticed that the sticky bit was set on \ssd but not on \CMM:
\CMM:
drwxrwx---
\ssd:
drwxrwx--T
I tried setting it on \CMM and then running the capture again, but am still getting STATUS_NONE_MAPPED. What else can I try to debug this?
Thanks,
Andrew