]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2017-12150: s3:lib: get_cmdline_auth_info_signing_state smb_encrypt SMB_SIGNING_R...
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Nov 2016 16:16:43 +0000 (17:16 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 4 Sep 2017 09:34:04 +0000 (11:34 +0200)
This is an addition to the fixes for CVE-2015-5296.

It applies to smb2mount -e, smbcacls -e and smbcquotas -e.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12997

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/lib/util_cmdline.c

index 80c3ecdb4622e744aff18316a978cdf3b5ef2f95..539fa55d3a264c4a516b50575e20401ba6ffcf71 100644 (file)
@@ -123,6 +123,9 @@ bool set_cmdline_auth_info_signing_state(struct user_auth_info *auth_info,
 
 int get_cmdline_auth_info_signing_state(const struct user_auth_info *auth_info)
 {
+       if (auth_info->smb_encrypt) {
+               return SMB_SIGNING_REQUIRED;
+       }
        return auth_info->signing_state;
 }