[policycoreutils/f18] Fix system-config-selinux to use sepolicy.generate instead of sepolgen

Daniel J Walsh dwalsh at fedoraproject.org
Sat Oct 6 12:26:37 UTC 2012


commit b0e3bf32df587f378a473a933310deaab95e2191
Author: rhatdan <dwalsh at redhat.com>
Date:   Sat Oct 6 08:26:12 2012 -0400

    Fix system-config-selinux to use sepolicy.generate instead of sepolgen

 policycoreutils-rhat.patch |   22 ++++++++++++++++++++++
 policycoreutils.spec       |    5 ++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/policycoreutils-rhat.patch b/policycoreutils-rhat.patch
index 68c652d..822dfaa 100644
--- a/policycoreutils-rhat.patch
+++ b/policycoreutils-rhat.patch
@@ -73,6 +73,28 @@ index 1464971..bdb2e49 100644
  
  clean:
  
+diff --git a/policycoreutils/gui/domainsPage.py b/policycoreutils/gui/domainsPage.py
+index 03451b6..91c88a8 100644
+--- a/policycoreutils/gui/domainsPage.py
++++ b/policycoreutils/gui/domainsPage.py
+@@ -26,7 +26,7 @@ import sys
+ import seobject
+ import selinux
+ from semanagePage import *;
+-import polgen
++from sepolicy.generate import get_all_domains
+ 
+ ##
+ ## I18N
+@@ -68,7 +68,7 @@ class domainsPage(semanagePage):
+         self.permissive_button = xml.get_widget("permissiveButton")
+         self.enforcing_button = xml.get_widget("enforcingButton")
+ 
+-        self.domains=polgen.get_all_domains()
++        self.domains=get_all_domains()
+         self.load()
+ 
+     def get_modules(self):
 diff --git a/policycoreutils/gui/polgen.glade b/policycoreutils/gui/polgen.glade
 index 55bad9d..ee9f394 100644
 --- a/policycoreutils/gui/polgen.glade
diff --git a/policycoreutils.spec b/policycoreutils.spec
index ed77805..1050e97 100644
--- a/policycoreutils.spec
+++ b/policycoreutils.spec
@@ -7,7 +7,7 @@
 Summary: SELinux policy core utilities
 Name:	 policycoreutils
 Version: 2.1.13
-Release: 4%{?dist}
+Release: 6%{?dist}
 License: GPLv2
 Group:	 System Environment/Base
 # Based on git repository with tag 20101221
@@ -331,6 +331,9 @@ The policycoreutils-restorecond package contains the restorecond service.
 %{_bindir}/systemctl try-restart restorecond.service >/dev/null 2>&1 || :
 
 %changelog
+* Sat Oct 6 2012 Dan Walsh <dwalsh at redhat.com> - 2.1.12-6
+- Fix system-config-selinux to use sepolicy.generate instead of sepolgen
+
 * Thu Oct 4 2012 Dan Walsh <dwalsh at redhat.com> - 2.1.12-5
 - Add sepolicy commands, and change tools to use them.
 


More information about the scm-commits mailing list