53 lines
1.6 KiB
Diff
53 lines
1.6 KiB
Diff
diff --git selinux-gui-2.7/polgengui.py selinux-gui-2.7/polgengui.py
|
|
index 7460cce..064001b 100644
|
|
--- selinux-gui-2.7/polgengui.py
|
|
+++ selinux-gui-2.7/polgengui.py
|
|
@@ -34,7 +34,9 @@ except ValueError as e:
|
|
sys.stderr.write("%s: %s\n" % (e.__class__.__name__, str(e)))
|
|
sys.exit(1)
|
|
|
|
+import sepolicy.generate
|
|
import sepolicy.interface
|
|
+
|
|
try:
|
|
from subprocess import getstatusoutput
|
|
except ImportError:
|
|
@@ -696,16 +698,16 @@ class childWindow:
|
|
|
|
def on_in_net_page_next(self, *args):
|
|
try:
|
|
- generate.verify_ports(self.in_tcp_entry.get_text())
|
|
- generate.verify_ports(self.in_udp_entry.get_text())
|
|
+ sepolicy.generate.verify_ports(self.in_tcp_entry.get_text())
|
|
+ sepolicy.generate.verify_ports(self.in_udp_entry.get_text())
|
|
except ValueError as e:
|
|
self.error(e.message)
|
|
return True
|
|
|
|
def on_out_net_page_next(self, *args):
|
|
try:
|
|
- generate.verify_ports(self.out_tcp_entry.get_text())
|
|
- generate.verify_ports(self.out_udp_entry.get_text())
|
|
+ sepolicy.generate.verify_ports(self.out_tcp_entry.get_text())
|
|
+ sepolicy.generate.verify_ports(self.out_udp_entry.get_text())
|
|
except ValueError as e:
|
|
self.error(e.message)
|
|
return True
|
|
diff --git selinux-gui-2.7/portsPage.py selinux-gui-2.7/portsPage.py
|
|
index b8fdaad..f86d2d3 100644
|
|
--- selinux-gui-2.7/portsPage.py
|
|
+++ selinux-gui-2.7/portsPage.py
|
|
@@ -40,6 +40,12 @@ from semanagePage import *
|
|
## I18N
|
|
##
|
|
PROGNAME = "policycoreutils"
|
|
+
|
|
+TYPE_COL = 0
|
|
+PROTOCOL_COL = 1
|
|
+MLS_COL = 2
|
|
+PORT_COL = 3
|
|
+
|
|
try:
|
|
import gettext
|
|
kwargs = {}
|