summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-04-23 19:25:24 +0000
committerMike Fulbright <msf@redhat.com>2001-04-23 19:25:24 +0000
commit0a3f164453a8a033d6f8d8b134464a06902c2109 (patch)
tree15aaf508a73b9e17348763bd51c38a7ec41d04cc
parente781269072064238b6c6bac0d2f632f44e12e477 (diff)
downloadanaconda-0a3f164453a8a033d6f8d8b134464a06902c2109.tar.gz
anaconda-0a3f164453a8a033d6f8d8b134464a06902c2109.tar.xz
anaconda-0a3f164453a8a033d6f8d8b134464a06902c2109.zip
dont make swapfile world readable
-rw-r--r--fstab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fstab.py b/fstab.py
index 2cfb9481c..a13ddf43b 100644
--- a/fstab.py
+++ b/fstab.py
@@ -509,7 +509,7 @@ class Fstab:
iutil.execWithRedirect ("/usr/sbin/mkswap",
[ "mkswap", '-v1', file ],
stdout = None, stderr = None)
-
+ os.chmod(file, 0600)
formatThisSwap = 1
else:
log("swap file %s is in the fstab, but does not exist",