summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-02-27 03:43:58 +0100
committerStefan Metzmacher <metze@samba.org>2016-04-12 19:25:26 +0200
commitf65f618e9634d75f0074b2031f856f0ed605d705 (patch)
treef24c4d2a41372fb875709fff8957db8b2a35fac0 /lib
parent8ff6a955f51ccb64cc6679bb457064659f030ab8 (diff)
downloadsamba-f65f618e9634d75f0074b2031f856f0ed605d705.tar.gz
CVE-2016-2115: docs-xml: add "client ipc signing" option
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11756 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/param/loadparm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 6247f88c19d..c416368ccc2 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2656,6 +2656,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lpcfg_do_global_parameter(lp_ctx, "template homedir", "/home/%D/%U");
lpcfg_do_global_parameter(lp_ctx, "client signing", "default");
+ lpcfg_do_global_parameter(lp_ctx, "client ipc signing", "default");
lpcfg_do_global_parameter(lp_ctx, "server signing", "default");
lpcfg_do_global_parameter(lp_ctx, "use spnego", "True");
@@ -3345,6 +3346,19 @@ int lpcfg_client_ipc_max_protocol(struct loadparm_context *lp_ctx)
return client_ipc_max_protocol;
}
+int lpcfg_client_ipc_signing(struct loadparm_context *lp_ctx)
+{
+ int client_ipc_signing = lpcfg__client_ipc_signing(lp_ctx);
+ if (client_ipc_signing == SMB_SIGNING_DEFAULT) {
+ int ipc_min_protocol = lpcfg_client_ipc_min_protocol(lp_ctx);
+ if (ipc_min_protocol >= PROTOCOL_SMB2_02) {
+ return SMB_SIGNING_REQUIRED;
+ }
+ return lpcfg_client_signing(lp_ctx);
+ }
+ return client_ipc_signing;
+}
+
bool lpcfg_server_signing_allowed(struct loadparm_context *lp_ctx, bool *mandatory)
{
bool allowed = true;