* Tue Aug 28 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-6

- Add more role_templates
This commit is contained in:
Daniel J Walsh 2007-08-28 19:31:24 +00:00
parent d0035566d5
commit 08b9f6e005
2 changed files with 25 additions and 7 deletions

View File

@ -3179,8 +3179,8 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgen.glade policyc
+</glade-interface>
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policycoreutils-2.0.25/gui/polgengui.py
--- nsapolicycoreutils/gui/polgengui.py 1969-12-31 19:00:00.000000000 -0500
+++ policycoreutils-2.0.25/gui/polgengui.py 2007-08-28 10:01:46.000000000 -0400
@@ -0,0 +1,392 @@
+++ policycoreutils-2.0.25/gui/polgengui.py 2007-08-28 15:23:13.000000000 -0400
@@ -0,0 +1,407 @@
+#!/usr/bin/python
+#
+# system-config-selinux.py - GUI for SELinux Config tool in system-config-selinux
@ -3213,6 +3213,9 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policyc
+import gnome
+import sys
+import polgen
+import sepolgen.interfaces as interfaces
+import sepolgen.defaults as defaults
+import re
+
+##
+## I18N
@ -3250,6 +3253,13 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policyc
+else:
+ xml = gtk.glade.XML ("/usr/share/system-config-selinux/polgen.glade", domain=PROGNAME)
+
+fn = defaults.interface_info()
+try:
+ fd = open(fn)
+except:
+ sys.stderr.write("could not open interface info [%s]\n" % fn)
+ sys.exit(1)
+
+FILE = 1
+DIR = 2
+class childWindow:
@ -3326,10 +3336,15 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policyc
+ self.transition_store.set_sort_column_id(0, gtk.SORT_ASCENDING)
+ col = gtk.TreeViewColumn(_("Application"), gtk.CellRendererText(), text = 0)
+ self.transition_treeview.append_column(col)
+ # Need to figure out a way to optain these
+ for k in ["mozilla", "ssh"]:
+ iter = self.transition_store.append()
+ self.transition_store.set_value(iter, 0, k)
+ # List of per_role_template interfaces
+ ifs = interfaces.InterfaceSet()
+ ifs.from_file(fd)
+ fd.close()
+ for i in ifs.interfaces.keys():
+ m = re.findall("(.*)_per_role_template", i)
+ if len(m) > 0:
+ iter = self.transition_store.append()
+ self.transition_store.set_value(iter, 0, m[0])
+
+ def forward(self, arg):
+ type = self.confine_application.get_active()

View File

@ -6,7 +6,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.0.25
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2+
Group: System Environment/Base
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@ -200,6 +200,9 @@ if [ "$1" -ge "1" ]; then
fi
%changelog
* Tue Aug 28 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-6
- Add more role_templates
* Tue Aug 28 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-5
- Update genpolgui to add creation of user domains