summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-01-17 18:19:16 +0000
committerChris Lumens <clumens@redhat.com>2006-01-17 18:19:16 +0000
commitd968572a843bf44e3b7a049ce6febb189984b5ef (patch)
treeb49984e92c04eae225ec30f6d1d4d4a93c196e5b
parent1b08c711e7eaaecb3afc22f0a02a859d6fc1b51d (diff)
downloadanaconda-d968572a843bf44e3b7a049ce6febb189984b5ef.tar.gz
anaconda-d968572a843bf44e3b7a049ce6febb189984b5ef.tar.xz
anaconda-d968572a843bf44e3b7a049ce6febb189984b5ef.zip
Set permissions on log files to 0600 (#177519).
-rw-r--r--ChangeLog3
-rw-r--r--kickstart.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bd2c50b83..f87008f8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* instdata.py (InstallData.write): Don't traceback on printing out an
authconfig-related error message (#178041).
+ * kickstart.py (AnacondaKSScript.run): Set permissions on log files
+ to 0600 (#177519).
+
* loader2/urlinstall.c (loadSingleUrlImage): Not every caller wants
to put the product on the front of the URL (#178001).
diff --git a/kickstart.py b/kickstart.py
index 6bb45c3ec..23615b6a4 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -79,6 +79,9 @@ class AnacondaKSScript(Script):
os.unlink(path)
+ if serial or self.logfile is not None:
+ os.chmod("%s/%s" % (scriptRoot, messages), 0600)
+
class AnacondaKSHandlers(KickstartHandlers):
def __init__ (self, ksdata):
KickstartHandlers.__init__(self, ksdata)