Change log file permissions 45/15745/2
authorPeter Barabas <peter.barabas@ericsson.com>
Thu, 16 Jun 2016 12:34:28 +0000 (14:34 +0200)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Wed, 17 Aug 2016 09:31:32 +0000 (09:31 +0000)
Don't make it executable; don't make it world-writable.

Change-Id: I5d117b39e70fff2c1cb5e62d017efe0387b9b5f4
Signed-off-by: Peter Barabas <peter.barabas@ericsson.com>
deploy/common.py

index 9654b37..3530458 100644 (file)
@@ -37,7 +37,7 @@ if os.path.isfile(LOGFILE):
 out_handler = logging.FileHandler(LOGFILE, mode='w')
 out_handler.setFormatter(formatter)
 LOG.addHandler(out_handler)
-os.chmod(LOGFILE, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
+os.chmod(LOGFILE, 0664)
 
 
 def mask_arguments(cmd, mask_args, mask_str):