OSDN Git Service

cifs: In Kconfig CONFIG_CIFS_POSIX needs depends on legacy (insecure cifs)
authorSteve French <stfrench@microsoft.com>
Sat, 3 Nov 2018 20:02:44 +0000 (15:02 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 6 Dec 2018 08:20:14 +0000 (02:20 -0600)
Missing a dependency.  Shouldn't show cifs posix extensions
in Kconfig if CONFIG_CIFS_ALLOW_INSECURE_DIALECTS (ie SMB1
protocol) is disabled.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/Kconfig

index abcd78e..85dadb9 100644 (file)
@@ -133,7 +133,7 @@ config CIFS_XATTR
 
 config CIFS_POSIX
         bool "CIFS POSIX Extensions"
-        depends on CIFS_XATTR
+        depends on CIFS && CIFS_ALLOW_INSECURE_LEGACY && CIFS_XATTR
         help
           Enabling this option will cause the cifs client to attempt to
          negotiate a newer dialect with servers, such as Samba 3.0.5