[policycoreutils/f12/master] - Fix fcontext translation handling in system-config-selinux
Daniel J Walsh
dwalsh at fedoraproject.org
Mon Aug 23 15:28:56 UTC 2010
commit 1ae6edaa3f33c3b77654b2aed37c997a8b09bbdc
Author: Dan Walsh <dwalsh at redhat.com>
Date: Mon Aug 23 11:28:37 2010 -0400
- Fix fcontext translation handling in system-config-selinux
policycoreutils-fcontext.patch | 21 +++++++++++++++++++++
policycoreutils.spec | 7 ++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/policycoreutils-fcontext.patch b/policycoreutils-fcontext.patch
new file mode 100644
index 0000000..9b695a3
--- /dev/null
+++ b/policycoreutils-fcontext.patch
@@ -0,0 +1,21 @@
+diff -up policycoreutils-2.0.83/gui/fcontextPage.py.old policycoreutils-2.0.83/gui/fcontextPage.py
+--- policycoreutils-2.0.83/gui/fcontextPage.py.old 2010-08-23 11:23:31.000000000 -0400
++++ policycoreutils-2.0.83/gui/fcontextPage.py 2010-08-23 11:23:48.000000000 -0400
+@@ -185,14 +185,14 @@ class fcontextPage(semanagePage):
+ self.error(e.args[0])
+
+ def add(self):
++ ftype=["", "--", "-d", "-c", "-b", "-s", "-l", "-p" ]
+ fspec=self.fcontextEntry.get_text().strip()
+ type=self.fcontextTypeEntry.get_text().strip()
+ mls=self.fcontextMLSEntry.get_text().strip()
+ list_model=self.fcontextFileTypeCombo.get_model()
+- iter = self.fcontextFileTypeCombo.get_active_iter()
+- ftype=list_model.get_value(iter,0)
++ active = self.fcontextFileTypeCombo.get_active()
+ self.wait()
+- (rc, out) = commands.getstatusoutput("semanage fcontext -a -t %s -r %s -f '%s' '%s'" % (type, mls, ftype, fspec))
++ (rc, out) = commands.getstatusoutput("semanage fcontext -a -t %s -r %s -f '%s' '%s'" % (type, mls, ftype[active], fspec))
+ self.ready()
+ if rc != 0:
+ self.error(out)
diff --git a/policycoreutils.spec b/policycoreutils.spec
index 990e0b9..415fe04 100644
--- a/policycoreutils.spec
+++ b/policycoreutils.spec
@@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.0.82
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPLv2+
Group: System Environment/Base
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@@ -24,6 +24,7 @@ Patch: policycoreutils-rhat.patch
Patch1: policycoreutils-po.patch
Patch3: policycoreutils-gui.patch
Patch4: policycoreutils-sepolgen.patch
+Patch5: policycoreutils-fcontext.patch
Obsoletes: policycoreutils < 2.0.61-2
%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
@@ -62,6 +63,7 @@ context.
%patch1 -p1 -b .rhatpo
%patch3 -p1 -b .gui
%patch4 -p1 -b .sepolgen
+%patch5 -p1 -b .fcontext
%build
make LSPP_PRIV=y LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fPIE" LDFLAGS="-pie -Wl,-z,relro" all
@@ -305,6 +307,9 @@ fi
exit 0
%changelog
+* Fri Aug 13 2010 Dan Walsh <dwalsh at redhat.com> 2.0.82-6
+- Fix fcontext translation handling in system-config-selinux
+
* Thu Jul 22 2010 Dan Walsh <dwalsh at redhat.com> 2.0.82-5
- Fix sandbox command on HOMEDIR
More information about the scm-commits
mailing list