Sandro Bonazzola has uploaded a new change for review.

Change subject: archive: allow access only to the user
......................................................................

archive: allow access only to the user

Change mode permission bits to 600

Change-Id: I90a69f1ea9d09915d04bd84339d64ec6d9e6c05a
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
---
M src/__main__.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector 
refs/changes/49/31249/1

diff --git a/src/__main__.py b/src/__main__.py
index 923f038..80ee0e4 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -36,6 +36,8 @@
 import time
 import socket
 import sos
+import stat
+
 
 from ovirt_engine import configfile
 
@@ -1010,6 +1012,7 @@
         caller.call("tar -cf '%(report)s' -C '%(directory)s' .")
         shutil.rmtree(self.conf["local_tmp_dir"])
         caller.call("%(compressor)s -1 '%(report)s'")
+        os.chmod(self.conf["path"], stat.S_IRUSR | stat.S_IWUSR)
         md5_out = caller.call("md5sum '%(compressed_report)s'")
         checksum = md5_out.split()[0]
         with open("%s.md5" % self.conf["path"], 'w') as checksum_file:


-- 
To view, visit http://gerrit.ovirt.org/31249
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I90a69f1ea9d09915d04bd84339d64ec6d9e6c05a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-log-collector
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to