Skip to content
  • Steve French's avatar
    [CIFS] When mandatory encryption on share, fail mount · 6848b733
    Steve French authored
    
    
        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: default avatarPavel Shilovsky <piastry@etersoft.ru>
    Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
    6848b733