]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
cifs: Only select the required crypto modules
authorJean Delvare <jdelvare@suse.de>
Wed, 25 Jan 2017 15:08:17 +0000 (16:08 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 7 Mar 2017 17:04:36 +0000 (10:04 -0700)
BugLink: http://bugs.launchpad.net/bugs/1670508
The sha256 and cmac crypto modules are only needed for SMB2+, so move
the select statements to config CIFS_SMB2. Also select CRYPTO_AES
there as SMB2+ needs it.

Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Steve French <sfrench@samba.org>
(cherry picked from commit 3692304bba6164be3810afd41b84ecb0e1e41db1)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/cifs/Kconfig

index a439c17c85c49afbee809162d58070655ef1bf29..ff0d1fe542f7440d0bb7d78b465e37654710509e 100644 (file)
@@ -9,8 +9,6 @@ config CIFS
        select CRYPTO_ARC4
        select CRYPTO_ECB
        select CRYPTO_DES
-       select CRYPTO_SHA256
-       select CRYPTO_CMAC
        help
          This is the client VFS module for the Common Internet File System
          (CIFS) protocol which is the successor to the Server Message Block
@@ -173,6 +171,9 @@ config CIFS_SMB2
        select KEYS
        select FSCACHE
        select DNS_RESOLVER
+       select CRYPTO_AES
+       select CRYPTO_SHA256
+       select CRYPTO_CMAC
 
        help
          This enables support for the Server Message Block version 2