aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2011-05-26 18:38:54 +0000
committerSteve French <sfrench@us.ibm.com>2011-05-26 18:38:54 +0000
commit6848b7334b24b47aa3d0e70342ff839ffa95d5fa (patch)
tree6e28dfc52d0625569293b02969416315af3046f6 /fs/cifs/cifsfs.c
parentfa2989f4473413a86890066aa3a5676a53b541e4 (diff)
downloadkernel_samsung_smdk4412-6848b7334b24b47aa3d0e70342ff839ffa95d5fa.zip
kernel_samsung_smdk4412-6848b7334b24b47aa3d0e70342ff839ffa95d5fa.tar.gz
kernel_samsung_smdk4412-6848b7334b24b47aa3d0e70342ff839ffa95d5fa.tar.bz2
[CIFS] When mandatory encryption on share, fail mount
When mandatory encryption is configured in samba server on a share (smb.conf parameter "smb encrypt = mandatory") the server will hang up the tcp session when we try to send the first frame after the tree connect if it is not a QueryFSUnixInfo, this causes cifs mount to hang (it must be killed with ctl-c). Move the QueryFSUnixInfo call earlier in the mount sequence, and check whether the SetFSUnixInfo fails due to mandatory encryption so we can return a sensible error (EACCES) on mount. In a future patch (for 2.6.40) we will support mandatory encryption. CC: Stable <stable@kernel.org> Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
0 files changed, 0 insertions, 0 deletions