mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
CVE-2013-4476: samba-tool provision: create ${private_dir}/tls with mode 0700
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10234 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
63d98ed904
commit
83a3ae18dd
@ -2025,7 +2025,7 @@ def provision(logger, session_info, 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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user