From d6988a14b4f82ff5bd6c48a61f8edd02f7b24aa6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Tue, 29 Oct 2013 17:49:55 +0100 Subject: [PATCH] CVE-2013-4476: samba-tool provision: create ${private_dir}/tls with mode 0700 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bug: https://bugzilla.samba.org/show_bug.cgi?id=10234 Signed-off-by: Björn Baumbach Reviewed-by: Stefan Metzmacher --- python/samba/provision/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py index 89f029a2afc..4af6b6955d0 100644 --- a/python/samba/provision/__init__.py +++ b/python/samba/provision/__init__.py @@ -2024,7 +2024,7 @@ def provision(logger, session_info, credentials, smbconf=None, if not os.path.exists(paths.private_dir): os.mkdir(paths.private_dir) if not os.path.exists(os.path.join(paths.private_dir, "tls")): - os.mkdir(os.path.join(paths.private_dir, "tls")) + os.makedirs(os.path.join(paths.private_dir, "tls"), 0700) if not os.path.exists(paths.state_dir): os.mkdir(paths.state_dir) -- 2.11.4.GIT