diff options
author | Andreas Schneider <asn@samba.org> | 2017-08-10 11:43:11 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-09-05 23:58:20 +0200 |
commit | 47c039792a8a00c0f2798ced162c393d4712f946 (patch) | |
tree | d7696e20a7495f7cca57433bb5816e705bad77e4 | |
parent | f8b491fac42b95cecad419e1a54fd5e7ee6cb9e3 (diff) | |
download | samba-47c039792a8a00c0f2798ced162c393d4712f946.tar.gz |
dynconfig: Change permission of the private dir to 0700
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
-rw-r--r-- | dynconfig/wscript | 2 | ||||
-rw-r--r-- | python/samba/provision/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dynconfig/wscript b/dynconfig/wscript index 7e9bde929d0..ba0c896b90e 100644 --- a/dynconfig/wscript +++ b/dynconfig/wscript @@ -418,7 +418,7 @@ def build(bld): bld.INSTALL_DIR("${CONFIGDIR}") bld.INSTALL_DIR("${LOGFILEBASE}") bld.INSTALL_DIR("${PRIVILEGED_SOCKET_DIR}") - bld.INSTALL_DIR("${PRIVATE_DIR}") + bld.INSTALL_DIR("${PRIVATE_DIR}", 0o700) bld.INSTALL_DIR("${STATEDIR}") bld.INSTALL_DIR("${CACHEDIR}") diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py index 2387931987e..91d2105929c 100644 --- a/python/samba/provision/__init__.py +++ b/python/samba/provision/__init__.py @@ -2065,7 +2065,7 @@ def provision(logger, session_info, smbconf=None, serverrole = lp.get("server role") if not os.path.exists(paths.private_dir): - os.mkdir(paths.private_dir) + os.mkdir(paths.private_dir, 0o700) if not os.path.exists(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): |