* Tue Jul 8 2008 Dan Walsh <dwalsh@redhat.com> 2.0.52-4
- Handle ranges of ports in gui
This commit is contained in:
parent
b54c5a833b
commit
fab4898fba
@ -6966,8 +6966,8 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/polgengui.py policyc
|
|||||||
+ app.stand_alone()
|
+ app.stand_alone()
|
||||||
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/portsPage.py policycoreutils-2.0.52/gui/portsPage.py
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/portsPage.py policycoreutils-2.0.52/gui/portsPage.py
|
||||||
--- nsapolicycoreutils/gui/portsPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/portsPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-2.0.52/gui/portsPage.py 2008-07-03 16:17:11.000000000 -0400
|
+++ policycoreutils-2.0.52/gui/portsPage.py 2008-07-08 15:48:27.000000000 -0400
|
||||||
@@ -0,0 +1,258 @@
|
@@ -0,0 +1,259 @@
|
||||||
+## portsPage.py - show selinux mappings
|
+## portsPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
+
|
+
|
||||||
@ -7172,9 +7172,10 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/portsPage.py policyc
|
|||||||
+ port_number = self.ports_number_entry.get_text().strip()
|
+ port_number = self.ports_number_entry.get_text().strip()
|
||||||
+ if port_number == "":
|
+ if port_number == "":
|
||||||
+ port_number = "1"
|
+ port_number = "1"
|
||||||
+ if not port_number.isdigit():
|
+ for i in port_number.split("-"):
|
||||||
+ self.error(_("Port number \"%s\" is not valid. 0 < PORT_NUMBER < 65536 ") % port_number )
|
+ if not i.isdigit():
|
||||||
+ return False
|
+ self.error(_("Port number \"%s\" is not valid. 0 < PORT_NUMBER < 65536 ") % port_number )
|
||||||
|
+ return False
|
||||||
+ list_model = self.ports_protocol_combo.get_model()
|
+ list_model = self.ports_protocol_combo.get_model()
|
||||||
+ iter = self.ports_protocol_combo.get_active_iter()
|
+ iter = self.ports_protocol_combo.get_active_iter()
|
||||||
+ protocol = list_model.get_value(iter,0)
|
+ protocol = list_model.get_value(iter,0)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Summary: SELinux policy core utilities
|
Summary: SELinux policy core utilities
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 2.0.52
|
Version: 2.0.52
|
||||||
Release: 3%{?dist}
|
Release: 4%{?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
|
||||||
@ -192,6 +192,9 @@ if [ "$1" -ge "1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 8 2008 Dan Walsh <dwalsh@redhat.com> 2.0.52-4
|
||||||
|
- Handle ranges of ports in gui
|
||||||
|
|
||||||
* Tue Jul 8 2008 Dan Walsh <dwalsh@redhat.com> 2.0.52-3
|
* Tue Jul 8 2008 Dan Walsh <dwalsh@redhat.com> 2.0.52-3
|
||||||
- Fix indent problems in seobject
|
- Fix indent problems in seobject
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user