Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 7975b69a9573419bca7707b3c1ec83ca > files > 5

mrepo-0.8.7-2.fc13.src.rpm

--- mrepo-0.8.7/mrepo.orig	2010-07-08 10:03:53.161522220 +0100
+++ mrepo-0.8.7/mrepo	2010-07-08 10:24:21.670257725 +0100
@@ -17,7 +17,7 @@
 from __future__ import generators # for Python 2.2
 import os, sys, glob, re, shutil, getopt, popen2
 import ConfigParser, urlparse, sha, types, traceback
-import time
+import time, selinux
 
 __version__ = "$Revision: 8695 $"
 # $Source$
@@ -517,8 +517,8 @@ class Dist:
             opts = '-o loop,ro'
             extra_opts = ''
             mount_cmd = cf.cmd['mount']
-            if readfile('/selinux/enforce') == '1':
-                opts = opts + ',context=system_u:object_r:httpd_sys_content_t'
+            if selinux.is_selinux_enabled()  == '1':
+                opts = opts + ',context=system_u:object_r:httpd_sys_content_t:s0'
         for iso in self.isos:
             if cf.shareiso:
                 symlink(iso, os.path.join(self.dir, 'iso'))