diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-04-20 23:57:52 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-04-20 23:57:52 +0000 |
commit | dd21162645521a4fc5142ca346ecca9728329c63 (patch) | |
tree | 5675a1ce69a7d9ae72f479c2e39f9d8f7a1fefd9 /packages.py | |
parent | 94cf0e32be849d997bf3578043c465b2ae42d123 (diff) | |
download | anaconda-dd21162645521a4fc5142ca346ecca9728329c63.tar.gz anaconda-dd21162645521a4fc5142ca346ecca9728329c63.tar.xz anaconda-dd21162645521a4fc5142ca346ecca9728329c63.zip |
some more selinux hackery (#121369)
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages.py b/packages.py index b8381ba80..4a4b3c0a9 100644 --- a/packages.py +++ b/packages.py @@ -578,6 +578,10 @@ def setupTimezone(timezone, upgrade, instPath, dir): def doPreInstall(method, id, intf, instPath, dir): if dir == DISPATCH_BACK: + try: + isys.umount(instPath + "/selinux") + except: + pass return arch = iutil.getArch () @@ -726,6 +730,14 @@ def doPreInstall(method, id, intf, instPath, dir): # it does and causes problems later log("error creating symlink, continuing anyway: %s" %(e,)) + # SELinux hackery (#121369) + if flags.selinux: + os.mkdir(instPath + "/selinux") + try: + isys.mount("/selinux", instPath + "/selinux", "selinuxfs") + except Exception, e: + log("error mounting selinuxfs: %s" %(e,)) + # try to copy the comps package. if it doesn't work, don't worry about it try: id.compspkg = method.copyFileToTemp("%s/base/comps.rpm" % (productPath,)) |