summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-04-25 19:02:08 +0000
committerChris Lumens <clumens@redhat.com>2007-04-25 19:02:08 +0000
commit3163a579ee9b6b946a51fb4e3edc50c433b3aa9c (patch)
tree70d63b037a663f83d35e6a8f2f489da1a0f75cc4 /packages.py
parent28615c0ceb7863672b7cc619863af9fef5e28397 (diff)
downloadanaconda-3163a579ee9b6b946a51fb4e3edc50c433b3aa9c.tar.gz
anaconda-3163a579ee9b6b946a51fb4e3edc50c433b3aa9c.tar.xz
anaconda-3163a579ee9b6b946a51fb4e3edc50c433b3aa9c.zip
anaconda makes /root, so make sure to set the context on it (#237834).
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages.py b/packages.py
index 9e93d85d0..51145cecb 100644
--- a/packages.py
+++ b/packages.py
@@ -191,7 +191,7 @@ def setupTimezone(anaconda):
# created by anaconda so that we can not be killed by selinux
def setFileCons(anaconda):
import partRequests
-
+
if flags.selinux:
log.info("setting SELinux contexts for anaconda created files")
@@ -213,7 +213,7 @@ def setFileCons(anaconda):
vgs.append("/dev/%s" %(entry.volumeGroupName,))
# ugh, this is ugly
- for dir in ["/etc/sysconfig/network-scripts", "/var/lib/rpm", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/etc/modprobe.d"] + vgs:
+ for dir in ["/etc/sysconfig/network-scripts", "/var/lib/rpm", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/etc/modprobe.d", "/root"] + vgs:
def addpath(x): return dir + "/" + x
if not os.path.isdir(anaconda.rootPath + dir):
@@ -229,7 +229,6 @@ def setFileCons(anaconda):
ret = isys.resetFileContext(os.path.normpath(f),
anaconda.rootPath)
log.info("set fc of %s to %s" %(f, ret))
-
return