python/sepolicy: call segenxml.py with python3
Fixes: https://github.com/SELinuxProject/selinux/issues/61 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> Acked-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
711fe60723
commit
510a679b47
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ def get_xml_file(if_file):
|
|||
from subprocess import getstatusoutput
|
||||
basedir = os.path.dirname(if_file) + "/"
|
||||
filename = os.path.basename(if_file).split(".")[0]
|
||||
rc, output = getstatusoutput("python /usr/share/selinux/devel/include/support/segenxml.py -w -m %s" % basedir + filename)
|
||||
rc, output = getstatusoutput("/usr/bin/python3 /usr/share/selinux/devel/include/support/segenxml.py -w -m %s" % (basedir + filename))
|
||||
if rc != 0:
|
||||
sys.stderr.write("\n Could not proceed selected interface file.\n")
|
||||
sys.stderr.write("\n%s" % output)
|
||||
|
|
Loading…
Reference in a new issue