rpms/policycoreutils/F-7 policycoreutils-gui.patch, 1.20, 1.21 policycoreutils.spec, 1.422, 1.423

Daniel J Walsh (dwalsh) fedora-extras-commits at redhat.com
Wed Sep 19 00:19:04 UTC 2007


Author: dwalsh

Update of /cvs/extras/rpms/policycoreutils/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32570

Modified Files:
	policycoreutils-gui.patch policycoreutils.spec 
Log Message:
* Tue Sep 18 2007 Dan Walsh <dwalsh at redhat.com> 2.0.16-13
- More changes to gui


policycoreutils-gui.patch:

Index: policycoreutils-gui.patch
===================================================================
RCS file: /cvs/extras/rpms/policycoreutils/F-7/policycoreutils-gui.patch,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- policycoreutils-gui.patch	18 Sep 2007 18:25:11 -0000	1.20
+++ policycoreutils-gui.patch	19 Sep 2007 00:19:01 -0000	1.21
@@ -1,6 +1,6 @@
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/booleansPage.py policycoreutils-2.0.25/gui/booleansPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/booleansPage.py policycoreutils-2.0.26/gui/booleansPage.py
 --- nsapolicycoreutils/gui/booleansPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/booleansPage.py	2007-09-11 15:02:03.000000000 -0400
++++ policycoreutils-2.0.26/gui/booleansPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,226 @@
 +#
 +# booleansPage.py - GUI for Booleans page in system-config-securitylevel
@@ -228,9 +228,9 @@
 +
 +        setsebool="/usr/sbin/setsebool -P %s=%d" % (key, not val)
 +        commands.getstatusoutput(setsebool)
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/fcontextPage.py policycoreutils-2.0.25/gui/fcontextPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/fcontextPage.py policycoreutils-2.0.26/gui/fcontextPage.py
 --- nsapolicycoreutils/gui/fcontextPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/fcontextPage.py	2007-09-11 15:02:05.000000000 -0400
++++ policycoreutils-2.0.26/gui/fcontextPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,209 @@
 +## fcontextPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -441,9 +441,9 @@
 +        self.store.set_value(iter, SPEC_COL, fspec)
 +        self.store.set_value(iter, FTYPE_COL, ftype)
 +        self.store.set_value(iter, TYPE_COL, "system_u:object_r:%s:%s" % (type, mls))
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/loginsPage.py policycoreutils-2.0.25/gui/loginsPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/loginsPage.py policycoreutils-2.0.26/gui/loginsPage.py
 --- nsapolicycoreutils/gui/loginsPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/loginsPage.py	2007-09-11 15:02:07.000000000 -0400
++++ policycoreutils-2.0.26/gui/loginsPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,179 @@
 +## loginsPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -624,9 +624,9 @@
 +        self.store.set_value(iter, 1, seuser)
 +        self.store.set_value(iter, 2, seobject.translate(serange))
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/Makefile policycoreutils-2.0.25/gui/Makefile
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/Makefile policycoreutils-2.0.26/gui/Makefile
 --- nsapolicycoreutils/gui/Makefile	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/Makefile	2007-08-28 09:22:17.000000000 -0400
++++ policycoreutils-2.0.26/gui/Makefile	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,34 @@
 +# Installation directories.
 +PREFIX ?= ${DESTDIR}/usr
@@ -662,9 +662,9 @@
 +indent:
 +
 +relabel:
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/mappingsPage.py policycoreutils-2.0.25/gui/mappingsPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/mappingsPage.py policycoreutils-2.0.26/gui/mappingsPage.py
 --- nsapolicycoreutils/gui/mappingsPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/mappingsPage.py	2007-09-11 15:02:09.000000000 -0400
++++ policycoreutils-2.0.26/gui/mappingsPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,56 @@
 +## mappingsPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -722,9 +722,9 @@
 +        for k in keys:
 +            print "%-25s %-25s %-25s" % (k, dict[k][0], translate(dict[k][1]))
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/modulesPage.py policycoreutils-2.0.25/gui/modulesPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/modulesPage.py policycoreutils-2.0.26/gui/modulesPage.py
 --- nsapolicycoreutils/gui/modulesPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/modulesPage.py	2007-09-11 15:02:11.000000000 -0400
++++ policycoreutils-2.0.26/gui/modulesPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,181 @@
 +## modulesPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -907,10 +907,10 @@
 +        
 +
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgen.glade policycoreutils-2.0.25/gui/polgen.glade
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgen.glade policycoreutils-2.0.26/gui/polgen.glade
 --- nsapolicycoreutils/gui/polgen.glade	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/polgen.glade	2007-09-18 14:02:32.000000000 -0400
-@@ -0,0 +1,2385 @@
++++ policycoreutils-2.0.26/gui/polgen.glade	2007-09-18 20:15:07.000000000 -0400
+@@ -0,0 +1,2386 @@
 +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
 +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
 +
@@ -2007,7 +2007,7 @@
 +				  <child>
 +				    <widget class="GtkEntry" id="in_tcp_entry">
 +				      <property name="visible">True</property>
-+				      <property name="tooltip" translatable="yes">Enter a comma separated list of tcp ports that application/user binds to. </property>
++				      <property name="tooltip" translatable="yes">Enter a comma separated list of tcp ports or ranges of ports that application/user binds to. Example: 612, 650-660</property>
 +				      <property name="can_focus">True</property>
 +				      <property name="editable">True</property>
 +				      <property name="visibility">True</property>
@@ -2139,7 +2139,7 @@
 +				  <child>
 +				    <widget class="GtkCheckButton" id="in_udp_unreserved_checkbutton">
 +				      <property name="visible">True</property>
-+				      <property name="tooltip" translatable="yes">Allows application/user to bind to any udp ports > 1024</property>
++				      <property name="tooltip" translatable="yes">Enter a comma separated list of udp ports or ranges of ports that application/user binds to. Example: 612, 650-660</property>
 +				      <property name="can_focus">True</property>
 +				      <property name="label" translatable="yes">Unreserved Ports (>1024)</property>
 +				      <property name="use_underline">True</property>
@@ -2197,7 +2197,7 @@
 +				  <child>
 +				    <widget class="GtkEntry" id="in_udp_entry">
 +				      <property name="visible">True</property>
-+				      <property name="tooltip" translatable="yes">Enter a comma separated list of tcp ports that application/user binds to. </property>
++				      <property name="tooltip" translatable="yes">Allows application/user to bind to any udp ports > 1024</property>
 +				      <property name="can_focus">True</property>
 +				      <property name="editable">True</property>
 +				      <property name="visibility">True</property>
@@ -2289,7 +2289,7 @@
 +	  <child>
 +	    <widget class="GnomeDruidPageStandard" id="out_net_page">
 +	      <property name="visible">True</property>
-+	      <property name="title" translatable="yes">Enter network ports that application/user connects to</property>
++	      <property name="tooltip" translatable="yes">Enter a comma separated list of tcp ports that application/user connects to. </property>
 +	      <child internal-child="vbox">
 +		<widget class="GtkVBox" id="druid-vbox7">
 +		  <property name="border_width">16</property>
@@ -2387,7 +2387,8 @@
 +				      <child>
 +					<widget class="GtkEntry" id="out_tcp_entry">
 +					  <property name="visible">True</property>
-+					  <property name="tooltip" translatable="yes">Enter a comma separated list of udp ports that application/user connects to.</property>
++					  <property name="tooltip" translatable="yes">Enter a comma separated list of tcp ports or ranges of ports that application/user connects to. Example: 612, 650-660</property>
++
 +					  <property name="can_focus">True</property>
 +					  <property name="editable">True</property>
 +					  <property name="visibility">True</property>
@@ -2519,7 +2520,7 @@
 +			      <child>
 +				<widget class="GtkEntry" id="out_udp_entry">
 +				  <property name="visible">True</property>
-+				  <property name="tooltip" translatable="yes">Enter a comma separated list of udp ports that application/user connects to.</property>
++				      <property name="tooltip" translatable="yes">Enter a comma separated list of udp ports or ranges of ports that application/user connects to. Example: 612, 650-660</property>
 +				  <property name="can_focus">True</property>
 +				  <property name="editable">True</property>
 +				  <property name="visibility">True</property>
@@ -3296,10 +3297,10 @@
 +</widget>
 +
 +</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.26/gui/polgengui.py
 --- nsapolicycoreutils/gui/polgengui.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/polgengui.py	2007-09-11 15:02:14.000000000 -0400
-@@ -0,0 +1,452 @@
++++ policycoreutils-2.0.26/gui/polgengui.py	2007-09-18 20:09:54.000000000 -0400
+@@ -0,0 +1,476 @@
 +#!/usr/bin/python
 +#
 +# system-config-selinux.py - GUI for SELinux Config tool in system-config-selinux
@@ -3499,6 +3500,14 @@
 +            if self.on_select_type_page_next():
 +                return
 +
++        if self.pages[type][self.current_page] == self.IN_NET_PAGE:
++            if self.on_in_net_page_next():
++                return
++
++        if self.pages[type][self.current_page] == self.OUT_NET_PAGE:
++            if self.on_out_net_page_next():
++                return
++
 +        if self.pages[type][self.current_page] == self.APP_PAGE:
 +            if self.on_name_page_next():
 +                return
@@ -3720,6 +3729,22 @@
 +            return
 +        self.output_entry.set_text(self.file_dialog.get_filename())
 +        
++    def on_in_net_page_next(self, *args):
++        try:
++            polgen.verify_ports(self.in_tcp_entry.get_text())
++            polgen.verify_ports(self.in_udp_entry.get_text())
++        except ValueError, e:
++            self.error(e.message)
++            return True
++        
++    def on_out_net_page_next(self, *args):
++        try:
++            polgen.verify_ports(self.out_tcp_entry.get_text())
++            polgen.verify_ports(self.out_udp_entry.get_text())
++        except ValueError, e:
++            self.error(e.message)
++            return True
++        
 +    def on_select_type_page_next(self, *args):
 +        self.exec_entry.set_sensitive(self.confine_application())
 +        self.exec_button.set_sensitive(self.confine_application())
@@ -3752,10 +3777,10 @@
 +
 +    app = childWindow()
 +    app.stand_alone()
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgen.py policycoreutils-2.0.25/gui/polgen.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgen.py policycoreutils-2.0.26/gui/polgen.py
 --- nsapolicycoreutils/gui/polgen.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/polgen.py	2007-09-10 15:43:04.000000000 -0400
-@@ -0,0 +1,727 @@
++++ policycoreutils-2.0.26/gui/polgen.py	2007-09-18 20:10:02.000000000 -0400
+@@ -0,0 +1,740 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
 +#
@@ -3841,6 +3866,34 @@
 +APPLICATIONS = [ DAEMON, INETD, USER, CGI ]
 +USERS = [ XUSER, TUSER, RUSER ]
 +
++def verify_ports(ports):
++    if ports == "":
++        return []
++    max_port=2**16
++    try:
++        temp = []
++        for a in ports.split(","):
++            r =  a.split("-")
++            if len(r) > 2:
++                raise  ValueError
++            if len(r) == 1:
++                begin = int (r[0])
++                end = int (r[0])
++            else:
++                begin = int (r[0])
++                end = int (r[1]) + 1
++                
++                if begin > end:
++                    raise  ValueError
++                
++                for p in range(begin, end):
++                    if p < 1 or p > max_port:
++                        raise  ValueError
++                    temp.append(p)
++                return temp
++    except ValueError:
++        raise  ValueError(_("Ports must be be numbers or ranges of numbers from 1 to %d " % max_port ))
++
 +class policy:
 +
 +	def __init__(self, name, type):
@@ -3924,21 +3977,6 @@
 +                    return self.dict[begin,end]
 +            return  None
 +
-+	def __verify_ports(self, ports):
-+		if ports == "":
-+			return []
-+		max_port=2**16
-+		try:
-+			temp = []
-+			for p in ports.split(","):
-+				i = int(p.strip())
-+				if i < 1 or i > max_port:
-+					raise  ValueError()
-+				temp.append(i)
-+			return temp
-+		except ValueError:
-+			raise  ValueError(_("Ports must be be numbers from 1 to %d " % max_port ))
-+
 +	def set_program(self, program):
 +                if self.type not in APPLICATIONS:
 +                    raise ValueError(_("USER Types are not allowed executables"))
@@ -3952,16 +3990,16 @@
 +		self.initscript = initscript
 +
 +	def set_in_tcp(self, all, reserved, unreserved, ports):
-+		self.in_tcp = [ all, reserved, unreserved, self.__verify_ports(ports)]
++		self.in_tcp = [ all, reserved, unreserved, verify_ports(ports)]
 +
 +	def set_in_udp(self, all, reserved, unreserved, ports):
-+		self.in_udp = [ all, reserved, unreserved, self.__verify_ports(ports)]
++		self.in_udp = [ all, reserved, unreserved, verify_ports(ports)]
 +
 +	def set_out_tcp(self, all, ports):
-+		self.out_tcp = [ all , False, False, self.__verify_ports(ports) ]
++		self.out_tcp = [ all , False, False, verify_ports(ports) ]
 +
 +	def set_out_udp(self, all, ports):
-+		self.out_udp = [ all , False, False, self.__verify_ports(ports) ]
++		self.out_udp = [ all , False, False, verify_ports(ports) ]
 +
 +	def set_use_syslog(self, val):
 +		if val != True and val != False:
@@ -4410,7 +4448,7 @@
 +if __name__ == '__main__':
 +    mypolicy = policy("mycgi", CGI)
 +    mypolicy.set_program("/var/www/cgi-bin/cgi")
-+    mypolicy.set_in_tcp(1, 0, 0, "513")
++    mypolicy.set_in_tcp(1, 0, 0, "512, 55000-55000")
 +    mypolicy.set_in_udp(1, 0, 0, "1513")
 +    mypolicy.set_use_uid(True)
 +    mypolicy.set_use_tmp(False)
@@ -4483,9 +4521,9 @@
 +    sys.exit(0)
 +    
 +	
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/portsPage.py policycoreutils-2.0.25/gui/portsPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/portsPage.py policycoreutils-2.0.26/gui/portsPage.py
 --- nsapolicycoreutils/gui/portsPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/portsPage.py	2007-09-11 15:02:16.000000000 -0400
++++ policycoreutils-2.0.26/gui/portsPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,247 @@
 +## portsPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -4734,9 +4772,9 @@
 +        self.store.set_value(iter, MLS_COL, mls)
 +
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/selinux.tbl policycoreutils-2.0.25/gui/selinux.tbl
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/selinux.tbl policycoreutils-2.0.26/gui/selinux.tbl
 --- nsapolicycoreutils/gui/selinux.tbl	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/selinux.tbl	2007-08-28 09:22:17.000000000 -0400
++++ policycoreutils-2.0.26/gui/selinux.tbl	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,296 @@
 +allow_console_login _("Login") _("Allow direct login to the console device. Requiered for System 390")
 +acct_disable_trans _("SELinux Service Protection") _("Disable SELinux protection for acct daemon")
@@ -5034,9 +5072,9 @@
 +webadm_manage_user_files _("HTTPD Service") _("Allow SELinux webadm user to manage unprivledged users home directories")
 +webadm_read_user_files _("HTTPD Service") _("Allow SELinux webadm user to read unprivledged users home directories")
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/semanagePage.py policycoreutils-2.0.25/gui/semanagePage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/semanagePage.py policycoreutils-2.0.26/gui/semanagePage.py
 --- nsapolicycoreutils/gui/semanagePage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/semanagePage.py	2007-09-11 15:02:18.000000000 -0400
++++ policycoreutils-2.0.26/gui/semanagePage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,136 @@
 +## semanagePage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -5174,9 +5212,9 @@
 +        self.dialog.hide()
 +
 +    
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/statusPage.py policycoreutils-2.0.25/gui/statusPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/statusPage.py policycoreutils-2.0.26/gui/statusPage.py
 --- nsapolicycoreutils/gui/statusPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/statusPage.py	2007-09-11 15:02:21.000000000 -0400
++++ policycoreutils-2.0.26/gui/statusPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,219 @@
 +## statusPage.py - show selinux status
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -5397,9 +5435,9 @@
 +        return self.types[self.selinuxTypeOptionMenu.get_active()]
 +
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/system-config-selinux.glade policycoreutils-2.0.25/gui/system-config-selinux.glade
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/system-config-selinux.glade policycoreutils-2.0.26/gui/system-config-selinux.glade
 --- nsapolicycoreutils/gui/system-config-selinux.glade	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/system-config-selinux.glade	2007-08-28 09:22:17.000000000 -0400
++++ policycoreutils-2.0.26/gui/system-config-selinux.glade	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,3326 @@
 +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
 +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
@@ -8727,9 +8765,9 @@
 +</widget>
 +
 +</glade-interface>
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/system-config-selinux.py policycoreutils-2.0.25/gui/system-config-selinux.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/system-config-selinux.py policycoreutils-2.0.26/gui/system-config-selinux.py
 --- nsapolicycoreutils/gui/system-config-selinux.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/system-config-selinux.py	2007-09-11 15:02:23.000000000 -0400
++++ policycoreutils-2.0.26/gui/system-config-selinux.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,171 @@
 +#!/usr/bin/python
 +#
@@ -8902,9 +8940,9 @@
 +
 +    app = childWindow()
 +    app.stand_alone()
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/executable.py policycoreutils-2.0.25/gui/templates/executable.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/executable.py policycoreutils-2.0.26/gui/templates/executable.py
 --- nsapolicycoreutils/gui/templates/executable.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/executable.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/executable.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,278 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -9184,9 +9222,9 @@
 +EXECUTABLE	--	gen_context(system_u:object_r:TEMPLATETYPE_script_exec_t,s0)
 +"""
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/__init__.py policycoreutils-2.0.25/gui/templates/__init__.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/__init__.py policycoreutils-2.0.26/gui/templates/__init__.py
 --- nsapolicycoreutils/gui/templates/__init__.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/__init__.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/__init__.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,18 @@
 +#
 +# Copyright (C) 2007 Red Hat, Inc.
@@ -9206,9 +9244,9 @@
 +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 +#
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/network.py policycoreutils-2.0.25/gui/templates/network.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/network.py policycoreutils-2.0.26/gui/templates/network.py
 --- nsapolicycoreutils/gui/templates/network.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/network.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/network.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,80 @@
 +te_port_types="""
 +type TEMPLATETYPE_port_t;
@@ -9290,9 +9328,9 @@
 +corenet_udp_bind_all_unreserved_ports(TEMPLATETYPE_t)
 +"""
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/rw.py policycoreutils-2.0.25/gui/templates/rw.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/rw.py policycoreutils-2.0.26/gui/templates/rw.py
 --- nsapolicycoreutils/gui/templates/rw.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/rw.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/rw.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,128 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -9422,10 +9460,10 @@
 +fc_dir="""
 +FILENAME(/.*)?			gen_context(system_u:object_r:TEMPLATETYPE_rw_t,s0)
 +"""
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/script.py policycoreutils-2.0.25/gui/templates/script.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/script.py policycoreutils-2.0.26/gui/templates/script.py
 --- nsapolicycoreutils/gui/templates/script.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/script.py	2007-09-14 10:14:10.000000000 -0400
-@@ -0,0 +1,45 @@
++++ policycoreutils-2.0.26/gui/templates/script.py	2007-09-18 17:32:55.000000000 -0400
+@@ -0,0 +1,50 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
 +#
@@ -9451,6 +9489,11 @@
 +########################### tmp Template File #############################
 +compile="""
 +#!/bin/sh
++if [ ! -f /usr/share/selinux/devel/Makefile ]; then
++echo 'selinux-policy-devel not installed, package required for building policy'
++echo '# yum install selinux-policy-devel'
++exit 1
++fi
 +make -f /usr/share/selinux/devel/Makefile
 +/usr/sbin/semodule -i PACKAGEFILENAME.pp
 +
@@ -9471,9 +9514,9 @@
 +users="""\
 +/usr/sbin/semanage user -a -P  TEMPLATETYPE -R "TEMPLATETYPE_rROLES" TEMPLATETYPE_u
 +"""
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/semodule.py policycoreutils-2.0.25/gui/templates/semodule.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/semodule.py policycoreutils-2.0.26/gui/templates/semodule.py
 --- nsapolicycoreutils/gui/templates/semodule.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/semodule.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/semodule.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,41 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -9516,9 +9559,9 @@
 +semanage ports -a -t TEMPLATETYPE_port_t -p udp PORTNUM
 +"""
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/tmp.py policycoreutils-2.0.25/gui/templates/tmp.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/tmp.py policycoreutils-2.0.26/gui/templates/tmp.py
 --- nsapolicycoreutils/gui/templates/tmp.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/tmp.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/tmp.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,97 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -9617,9 +9660,9 @@
 +	TEMPLATETYPE_manage_tmp($2)
 +"""
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/user.py policycoreutils-2.0.25/gui/templates/user.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/user.py policycoreutils-2.0.26/gui/templates/user.py
 --- nsapolicycoreutils/gui/templates/user.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/user.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/user.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,139 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -9760,9 +9803,9 @@
 +"""
 +
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_lib.py policycoreutils-2.0.25/gui/templates/var_lib.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_lib.py policycoreutils-2.0.26/gui/templates/var_lib.py
 --- nsapolicycoreutils/gui/templates/var_lib.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/var_lib.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/var_lib.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,162 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -9926,9 +9969,9 @@
 +fc_dir="""\
 +FILENAME(/.*)?			gen_context(system_u:object_r:TEMPLATETYPE_var_lib_t,s0)
 +"""
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_log.py policycoreutils-2.0.25/gui/templates/var_log.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_log.py policycoreutils-2.0.26/gui/templates/var_log.py
 --- nsapolicycoreutils/gui/templates/var_log.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/var_log.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/var_log.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,112 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -10042,9 +10085,9 @@
 +fc_dir="""\
 +FILENAME(/.*)?			gen_context(system_u:object_r:TEMPLATETYPE_log_t,s0)
 +"""
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_run.py policycoreutils-2.0.25/gui/templates/var_run.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_run.py policycoreutils-2.0.26/gui/templates/var_run.py
 --- nsapolicycoreutils/gui/templates/var_run.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/var_run.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/var_run.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,119 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -10165,9 +10208,9 @@
 +FILENAME(/.*)?			gen_context(system_u:object_r:TEMPLATETYPE_var_run_t,s0)
 +"""
 +
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_spool.py policycoreutils-2.0.25/gui/templates/var_spool.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/templates/var_spool.py policycoreutils-2.0.26/gui/templates/var_spool.py
 --- nsapolicycoreutils/gui/templates/var_spool.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/templates/var_spool.py	2007-09-14 10:14:10.000000000 -0400
++++ policycoreutils-2.0.26/gui/templates/var_spool.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,131 @@
 +# Copyright (C) 2007 Red Hat 
 +# see file 'COPYING' for use and warranty information
@@ -10300,9 +10343,9 @@
 +fc_dir="""\
 +FILENAME(/.*)?			gen_context(system_u:object_r:TEMPLATETYPE_spool_t,s0)
 +"""
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/translationsPage.py policycoreutils-2.0.25/gui/translationsPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/translationsPage.py policycoreutils-2.0.26/gui/translationsPage.py
 --- nsapolicycoreutils/gui/translationsPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/translationsPage.py	2007-09-11 15:01:13.000000000 -0400
++++ policycoreutils-2.0.26/gui/translationsPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,118 @@
 +## translationsPage.py - show selinux translations
 +## Copyright (C) 2006 Red Hat, Inc.
@@ -10422,9 +10465,9 @@
 +        store, iter = self.view.get_selection().get_selected()
 +        self.store.set_value(iter, 0, level)
 +        self.store.set_value(iter, 1, translation)
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/usersPage.py policycoreutils-2.0.25/gui/usersPage.py
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/usersPage.py policycoreutils-2.0.26/gui/usersPage.py
 --- nsapolicycoreutils/gui/usersPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.25/gui/usersPage.py	2007-09-11 15:01:08.000000000 -0400
++++ policycoreutils-2.0.26/gui/usersPage.py	2007-09-18 16:40:57.000000000 -0400
 @@ -0,0 +1,172 @@
 +## usersPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.


Index: policycoreutils.spec
===================================================================
RCS file: /cvs/extras/rpms/policycoreutils/F-7/policycoreutils.spec,v
retrieving revision 1.422
retrieving revision 1.423
diff -u -r1.422 -r1.423
--- policycoreutils.spec	18 Sep 2007 18:25:11 -0000	1.422
+++ policycoreutils.spec	19 Sep 2007 00:19:01 -0000	1.423
@@ -6,7 +6,7 @@
 Summary: SELinux policy core utilities.
 Name: policycoreutils
 Version: 2.0.16
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPL
 Group: System Environment/Base
 Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@@ -192,6 +192,9 @@
 fi
 
 %changelog
+* Tue Sep 18 2007 Dan Walsh <dwalsh at redhat.com> 2.0.16-13
+- More changes to gui
+
 * Tue Sep 18 2007 Dan Walsh <dwalsh at redhat.com> 2.0.16-12
 - Update to latest upstream policycoreutils gui
 




More information about the fedora-extras-commits mailing list