* Tue Aug 28 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-6
- Add more role_templates
This commit is contained in:
parent
d0035566d5
commit
08b9f6e005
@ -3179,8 +3179,8 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgen.glade policyc
|
|||||||
+</glade-interface>
|
+</glade-interface>
|
||||||
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policycoreutils-2.0.25/gui/polgengui.py
|
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
|
--- 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
|
+++ policycoreutils-2.0.25/gui/polgengui.py 2007-08-28 15:23:13.000000000 -0400
|
||||||
@@ -0,0 +1,392 @@
|
@@ -0,0 +1,407 @@
|
||||||
+#!/usr/bin/python
|
+#!/usr/bin/python
|
||||||
+#
|
+#
|
||||||
+# system-config-selinux.py - GUI for SELinux Config tool in system-config-selinux
|
+# 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 gnome
|
||||||
+import sys
|
+import sys
|
||||||
+import polgen
|
+import polgen
|
||||||
|
+import sepolgen.interfaces as interfaces
|
||||||
|
+import sepolgen.defaults as defaults
|
||||||
|
+import re
|
||||||
+
|
+
|
||||||
+##
|
+##
|
||||||
+## I18N
|
+## I18N
|
||||||
@ -3250,6 +3253,13 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policyc
|
|||||||
+else:
|
+else:
|
||||||
+ xml = gtk.glade.XML ("/usr/share/system-config-selinux/polgen.glade", domain=PROGNAME)
|
+ 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
|
+FILE = 1
|
||||||
+DIR = 2
|
+DIR = 2
|
||||||
+class childWindow:
|
+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)
|
+ self.transition_store.set_sort_column_id(0, gtk.SORT_ASCENDING)
|
||||||
+ col = gtk.TreeViewColumn(_("Application"), gtk.CellRendererText(), text = 0)
|
+ col = gtk.TreeViewColumn(_("Application"), gtk.CellRendererText(), text = 0)
|
||||||
+ self.transition_treeview.append_column(col)
|
+ self.transition_treeview.append_column(col)
|
||||||
+ # Need to figure out a way to optain these
|
+ # List of per_role_template interfaces
|
||||||
+ for k in ["mozilla", "ssh"]:
|
+ ifs = interfaces.InterfaceSet()
|
||||||
+ iter = self.transition_store.append()
|
+ ifs.from_file(fd)
|
||||||
+ self.transition_store.set_value(iter, 0, k)
|
+ 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):
|
+ def forward(self, arg):
|
||||||
+ type = self.confine_application.get_active()
|
+ type = self.confine_application.get_active()
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Summary: SELinux policy core utilities
|
Summary: SELinux policy core utilities
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 2.0.25
|
Version: 2.0.25
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
||||||
@ -200,6 +200,9 @@ if [ "$1" -ge "1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 28 2007 Dan Walsh <dwalsh@redhat.com> 2.0.25-5
|
||||||
- Update genpolgui to add creation of user domains
|
- Update genpolgui to add creation of user domains
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user