* Fri Nov 17 2006 Dan Walsh <dwalsh@redhat.com> 1.33.1-9
- Add Amy Grifis Patch to preserve newrole exit status
This commit is contained in:
parent
826769a72f
commit
2f91eb215d
@ -1,5 +1,5 @@
|
|||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/audit2allow/audit2allow policycoreutils-1.33.1/audit2allow/audit2allow
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/audit2allow/audit2allow policycoreutils-1.33.1/audit2allow/audit2allow
|
||||||
--- nsapolicycoreutils/audit2allow/audit2allow 2006-09-14 08:07:24.000000000 -0400
|
--- nsapolicycoreutils/audit2allow/audit2allow 2006-11-16 17:14:29.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/audit2allow/audit2allow 2006-11-15 16:29:10.000000000 -0500
|
+++ policycoreutils-1.33.1/audit2allow/audit2allow 2006-11-15 16:29:10.000000000 -0500
|
||||||
@@ -184,22 +184,26 @@
|
@@ -184,22 +184,26 @@
|
||||||
output.write(serules.out(requires, module))
|
output.write(serules.out(requires, module))
|
||||||
@ -43,8 +43,8 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
|
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/booleansPage.py policycoreutils-1.33.1/gui/booleansPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/booleansPage.py policycoreutils-1.33.1/gui/booleansPage.py
|
||||||
--- nsapolicycoreutils/gui/booleansPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/booleansPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/booleansPage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/booleansPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,247 @@
|
@@ -0,0 +1,250 @@
|
||||||
+#
|
+#
|
||||||
+# booleansPage.py - GUI for Booleans page in system-config-securitylevel
|
+# booleansPage.py - GUI for Booleans page in system-config-securitylevel
|
||||||
+#
|
+#
|
||||||
@ -231,6 +231,9 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.booleansView.append_column(col)
|
+ self.booleansView.append_column(col)
|
||||||
+ self.refreshBooleans()
|
+ self.refreshBooleans()
|
||||||
+
|
+
|
||||||
|
+ def get_description(self):
|
||||||
|
+ return _("Boolean")
|
||||||
|
+
|
||||||
+ def verify(self, message):
|
+ def verify(self, message):
|
||||||
+ dlg = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO,
|
+ dlg = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO,
|
||||||
+ gtk.BUTTONS_YES_NO,
|
+ gtk.BUTTONS_YES_NO,
|
||||||
@ -294,7 +297,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ return status
|
+ return status
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/fcontextPage.py policycoreutils-1.33.1/gui/fcontextPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/fcontextPage.py policycoreutils-1.33.1/gui/fcontextPage.py
|
||||||
--- nsapolicycoreutils/gui/fcontextPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/fcontextPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/fcontextPage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/fcontextPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,158 @@
|
@@ -0,0 +1,158 @@
|
||||||
+## fcontextPage.py - show selinux mappings
|
+## fcontextPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -339,7 +342,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
+class fcontextPage(semanagePage):
|
+class fcontextPage(semanagePage):
|
||||||
+ def __init__(self, xml):
|
+ def __init__(self, xml):
|
||||||
+ semanagePage.__init__(self, xml, "fcontext", "File Context")
|
+ semanagePage.__init__(self, xml, "fcontext", _("File Labeling"))
|
||||||
+ self.view = xml.get_widget("fcontextView")
|
+ self.view = xml.get_widget("fcontextView")
|
||||||
+ self.store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING)
|
+ self.store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING)
|
||||||
+ self.view.set_model(self.store)
|
+ self.view.set_model(self.store)
|
||||||
@ -456,7 +459,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.store.set_value(iter, 1, "system_u:object_r:%s:%s" % (type, mls))
|
+ self.store.set_value(iter, 1, "system_u:object_r:%s:%s" % (type, mls))
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/loginsPage.py policycoreutils-1.33.1/gui/loginsPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/loginsPage.py policycoreutils-1.33.1/gui/loginsPage.py
|
||||||
--- nsapolicycoreutils/gui/loginsPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/loginsPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/loginsPage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/loginsPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,161 @@
|
@@ -0,0 +1,161 @@
|
||||||
+## loginsPage.py - show selinux mappings
|
+## loginsPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -654,7 +657,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+relabel:
|
+relabel:
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/mappingsPage.py policycoreutils-1.33.1/gui/mappingsPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/mappingsPage.py policycoreutils-1.33.1/gui/mappingsPage.py
|
||||||
--- nsapolicycoreutils/gui/mappingsPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/mappingsPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/mappingsPage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/mappingsPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,54 @@
|
@@ -0,0 +1,54 @@
|
||||||
+## mappingsPage.py - show selinux mappings
|
+## mappingsPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -712,7 +715,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/modulesPage.py policycoreutils-1.33.1/gui/modulesPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/modulesPage.py policycoreutils-1.33.1/gui/modulesPage.py
|
||||||
--- nsapolicycoreutils/gui/modulesPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/modulesPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/modulesPage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/modulesPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,157 @@
|
@@ -0,0 +1,157 @@
|
||||||
+## modulesPage.py - show selinux mappings
|
+## modulesPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -873,7 +876,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/portsPage.py policycoreutils-1.33.1/gui/portsPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/portsPage.py policycoreutils-1.33.1/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-1.33.1/gui/portsPage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/portsPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,209 @@
|
@@ -0,0 +1,209 @@
|
||||||
+## portsPage.py - show selinux mappings
|
+## portsPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -1086,8 +1089,8 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/semanagePage.py policycoreutils-1.33.1/gui/semanagePage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/semanagePage.py policycoreutils-1.33.1/gui/semanagePage.py
|
||||||
--- nsapolicycoreutils/gui/semanagePage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/semanagePage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/semanagePage.py 2006-11-15 18:22:45.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/semanagePage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,104 @@
|
@@ -0,0 +1,107 @@
|
||||||
+## semanagePage.py - show selinux mappings
|
+## semanagePage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
+
|
+
|
||||||
@ -1137,6 +1140,9 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.view.get_selection().connect("changed", self.itemSelected)
|
+ self.view.get_selection().connect("changed", self.itemSelected)
|
||||||
+ self.description = description;
|
+ self.description = description;
|
||||||
+
|
+
|
||||||
|
+ def get_description(self):
|
||||||
|
+ return self.description
|
||||||
|
+
|
||||||
+ def itemSelected(self, args):
|
+ def itemSelected(self, args):
|
||||||
+ return
|
+ return
|
||||||
+
|
+
|
||||||
@ -1194,8 +1200,8 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/statusPage.py policycoreutils-1.33.1/gui/statusPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/statusPage.py policycoreutils-1.33.1/gui/statusPage.py
|
||||||
--- nsapolicycoreutils/gui/statusPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/statusPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/statusPage.py 2006-11-15 18:22:46.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/statusPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,230 @@
|
@@ -0,0 +1,213 @@
|
||||||
+## statusPage.py - show selinux status
|
+## statusPage.py - show selinux status
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
+
|
+
|
||||||
@ -1215,7 +1221,6 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
+## Author: Dan Walsh
|
+## Author: Dan Walsh
|
||||||
+import string
|
+import string
|
||||||
+import selinux
|
|
||||||
+import gtk
|
+import gtk
|
||||||
+import gtk.glade
|
+import gtk.glade
|
||||||
+import os
|
+import os
|
||||||
@ -1252,6 +1257,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+import gettext
|
+import gettext
|
||||||
+gettext.bindtextdomain(PROGNAME, "/usr/share/locale")
|
+gettext.bindtextdomain(PROGNAME, "/usr/share/locale")
|
||||||
+gettext.textdomain(PROGNAME)
|
+gettext.textdomain(PROGNAME)
|
||||||
|
+import selinux
|
||||||
+try:
|
+try:
|
||||||
+ gettext.install(PROGNAME, localedir="/usr/share/locale", unicode=1)
|
+ gettext.install(PROGNAME, localedir="/usr/share/locale", unicode=1)
|
||||||
+except IOError:
|
+except IOError:
|
||||||
@ -1261,17 +1267,28 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+class statusPage:
|
+class statusPage:
|
||||||
+ def __init__(self, xml):
|
+ def __init__(self, xml):
|
||||||
+ self.xml = xml
|
+ self.xml = xml
|
||||||
+ self.typechanged = False
|
|
||||||
+ self.needRelabel = False
|
+ self.needRelabel = False
|
||||||
+
|
+
|
||||||
|
+ self.type = selinux.selinux_getpolicytype()
|
||||||
+ # Bring in widgets from glade file.
|
+ # Bring in widgets from glade file.
|
||||||
+ self.typeHBox = xml.get_widget("typeHBox")
|
+ self.typeHBox = xml.get_widget("typeHBox")
|
||||||
+ self.selinuxTypeOptionMenu = xml.get_widget("selinuxTypeOptionMenu")
|
+ self.selinuxTypeOptionMenu = xml.get_widget("selinuxTypeOptionMenu")
|
||||||
+ self.typeLabel = xml.get_widget("typeLabel")
|
+ self.typeLabel = xml.get_widget("typeLabel")
|
||||||
+ self.modifySeparator = xml.get_widget("modifySeparator")
|
|
||||||
+ self.enabledOptionMenu = xml.get_widget("enabledOptionMenu")
|
+ self.enabledOptionMenu = xml.get_widget("enabledOptionMenu")
|
||||||
+ self.currentOptionMenu = xml.get_widget("currentOptionMenu")
|
+ self.currentOptionMenu = xml.get_widget("currentOptionMenu")
|
||||||
+ self.currentOptionMenu.set_active(self.get_current_mode())
|
+ self.relabel_checkbutton = xml.get_widget("relabelCheckbutton")
|
||||||
|
+ self.relabel_checkbutton.set_active(self.is_relabel())
|
||||||
|
+ self.relabel_checkbutton.connect("toggled", self.on_relabel_toggle)
|
||||||
|
+ if self.get_current_mode() == ENFORCING or self.get_current_mode() == PERMISSIVE:
|
||||||
|
+ self.currentOptionMenu.append_text(_("Enforcing"))
|
||||||
|
+ self.currentOptionMenu.append_text(_("Permissive"))
|
||||||
|
+ self.currentOptionMenu.set_active(self.get_current_mode())
|
||||||
|
+ self.currentOptionMenu.connect("changed", self.set_current_mode)
|
||||||
|
+ self.currentOptionMenu.set_sensitive(True)
|
||||||
|
+ else:
|
||||||
|
+ self.currentOptionMenu.append_text(_("Disabled"))
|
||||||
|
+ self.currentOptionMenu.set_sensitive(False)
|
||||||
|
+
|
||||||
+
|
+
|
||||||
+ if self.read_selinux_config() == None:
|
+ if self.read_selinux_config() == None:
|
||||||
+ self.selinuxsupport = False
|
+ self.selinuxsupport = False
|
||||||
@ -1283,12 +1300,9 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.selinuxTypeOptionMenu.connect("changed", self.typemenu_changed)
|
+ self.selinuxTypeOptionMenu.connect("changed", self.typemenu_changed)
|
||||||
+
|
+
|
||||||
+ self.typeLabel.set_mnemonic_widget(self.selinuxTypeOptionMenu)
|
+ self.typeLabel.set_mnemonic_widget(self.selinuxTypeOptionMenu)
|
||||||
+ # This line should always go last
|
|
||||||
+ self.dirty = False
|
|
||||||
+
|
+
|
||||||
+ def setup_relabel(self):
|
+ def get_description(self):
|
||||||
+ fd = open(RELABELFILE,"w")
|
+ return _("Status")
|
||||||
+ fd.close()
|
|
||||||
+
|
+
|
||||||
+ def get_current_mode(self):
|
+ def get_current_mode(self):
|
||||||
+ if selinux.is_selinux_enabled():
|
+ if selinux.is_selinux_enabled():
|
||||||
@ -1299,9 +1313,19 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ else:
|
+ else:
|
||||||
+ return DISABLED
|
+ return DISABLED
|
||||||
+
|
+
|
||||||
+ def set_current_mode(self,value):
|
+ def set_current_mode(self,menu):
|
||||||
+ if selinux.is_selinux_enabled():
|
+ selinux.security_setenforce(menu.get_active() == 0)
|
||||||
+ selinux.security_setenforce(value)
|
+
|
||||||
|
+ def is_relabel(self):
|
||||||
|
+ return os.access(RELABELFILE, os.F_OK) != 0
|
||||||
|
+
|
||||||
|
+ def on_relabel_toggle(self,button):
|
||||||
|
+ if button.get_active():
|
||||||
|
+ fd = open(RELABELFILE,"w")
|
||||||
|
+ fd.close()
|
||||||
|
+ else:
|
||||||
|
+ if os.access(RELABELFILE, os.F_OK) != 0:
|
||||||
|
+ os.unlink(RELABELFILE)
|
||||||
+
|
+
|
||||||
+ def verify(self, message):
|
+ def verify(self, message):
|
||||||
+ dlg = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO,
|
+ dlg = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO,
|
||||||
@ -1314,34 +1338,32 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ return rc
|
+ return rc
|
||||||
+
|
+
|
||||||
+ def typemenu_changed(self, menu):
|
+ def typemenu_changed(self, menu):
|
||||||
+ self.dirty = True
|
+ type = self.get_type()
|
||||||
+ type = self.getType()
|
+ enabled = self.enabledOptionMenu.get_active()
|
||||||
+ if self.initialtype != type:
|
+ if self.initialtype != type:
|
||||||
+ if self.inFirstboot == False and self.verify(_("Changing the policy type will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system. Do you wish to continue?")) == gtk.RESPONSE_NO:
|
+ if self.verify(_("Changing the policy type will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system. Do you wish to continue?")) == gtk.RESPONSE_NO:
|
||||||
+ menu.set_active(self.typeHistory)
|
+ menu.set_active(self.typeHistory)
|
||||||
+ return None
|
+ return None
|
||||||
+
|
+
|
||||||
+ self.needRelabel = True
|
+ self.relabel_checkbutton.set_active(True)
|
||||||
|
+ self.conf["SELINUX"] = modearray[enabled]
|
||||||
|
+ self.conf["SELINUXTYPE"]=type
|
||||||
|
+ self.conf.write()
|
||||||
|
+ self.typeHistory = menu.get_active()
|
||||||
+
|
+
|
||||||
+ def enabled_changed(self, combo):
|
+ def enabled_changed(self, combo):
|
||||||
+ self.dirty = True
|
+ enabled = combo.get_active()
|
||||||
+ setting = combo.get_active()
|
+ type = self.get_type()
|
||||||
+
|
+
|
||||||
+ if setting < 2:
|
+ if self.initEnabled == DISABLED and enabled < 2:
|
||||||
+ enabled = True
|
|
||||||
+ else:
|
|
||||||
+ enabled = False
|
|
||||||
+
|
|
||||||
+ if self.initEnabled == DISABLED and enabled:
|
|
||||||
+ if self.verify(_("Changing to SELinux enabled will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system. Do you wish to continue?")) == gtk.RESPONSE_NO:
|
+ if self.verify(_("Changing to SELinux enabled will cause a relabel of the entire file system on the next boot. Relabeling takes a long time depending on the size of the file system. Do you wish to continue?")) == gtk.RESPONSE_NO:
|
||||||
+ return None
|
+ return None
|
||||||
+
|
+
|
||||||
+ self.needRelabel = True
|
+ self.relabel_checkbutton.set_active(True)
|
||||||
+ elif not enabled:
|
|
||||||
+ self.needRelabel = False
|
|
||||||
+
|
+
|
||||||
+ self.typeLabel.set_sensitive(enabled)
|
+ self.conf["SELINUX"] = modearray[enabled]
|
||||||
+ self.selinuxTypeOptionMenu.set_sensitive(enabled)
|
+ self.conf["SELINUXTYPE"]=type
|
||||||
|
+ self.conf.write()
|
||||||
+
|
+
|
||||||
+ def read_selinux_config(self):
|
+ def read_selinux_config(self):
|
||||||
+ self.initialtype = "targeted"
|
+ self.initialtype = "targeted"
|
||||||
@ -1369,8 +1391,6 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.initEnabled = DISABLED
|
+ self.initEnabled = DISABLED
|
||||||
+ self.enabledOptionMenu.set_active(DISABLED)
|
+ self.enabledOptionMenu.set_active(DISABLED)
|
||||||
+
|
+
|
||||||
+ self.enabled_changed(self.enabledOptionMenu)
|
|
||||||
+
|
|
||||||
+ if self.conf.has_key("SELINUXTYPE"):
|
+ if self.conf.has_key("SELINUXTYPE"):
|
||||||
+ self.initialtype = self.conf.vars["SELINUXTYPE"].strip()
|
+ self.initialtype = self.conf.vars["SELINUXTYPE"].strip()
|
||||||
+ else:
|
+ else:
|
||||||
@ -1387,49 +1407,18 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ current = n
|
+ current = n
|
||||||
+ n = n+1
|
+ n = n+1
|
||||||
+ self.selinuxTypeOptionMenu.set_active(current)
|
+ self.selinuxTypeOptionMenu.set_active(current)
|
||||||
|
+ self.typeHistory = current
|
||||||
+
|
+
|
||||||
+ return 0
|
+ return 0
|
||||||
+
|
+
|
||||||
+ def getType(self):
|
+ def get_type(self):
|
||||||
+ return self.types[self.selinuxTypeOptionMenu.get_active()]
|
+ return self.types[self.selinuxTypeOptionMenu.get_active()]
|
||||||
+
|
+
|
||||||
+ def apply(self):
|
|
||||||
+ retval = 0
|
|
||||||
+
|
|
||||||
+ if self.selinuxsupport == False:
|
|
||||||
+ return retval
|
|
||||||
+
|
|
||||||
+ type = self.getType()
|
|
||||||
+
|
|
||||||
+ if self.dirty == True:
|
|
||||||
+ enabled = self.enabledOptionMenu.get_active()
|
|
||||||
+
|
|
||||||
+ self.conf["SELINUX"] = modearray[enabled]
|
|
||||||
+ if enabled == ENFORCING:
|
|
||||||
+ self.set_current_mode(1)
|
|
||||||
+ elif enabled == PERMISSIVE:
|
|
||||||
+ self.set_current_mode(0)
|
|
||||||
+
|
|
||||||
+ self.conf["SELINUXTYPE"]=type
|
|
||||||
+
|
|
||||||
+ if self.doDebug == False:
|
|
||||||
+ self.conf.write()
|
|
||||||
+
|
|
||||||
+ if self.needRelabel:
|
|
||||||
+ if self.doDebug == False:
|
|
||||||
+ self.setup_relabel()
|
|
||||||
+ retval = 1
|
|
||||||
+ else:
|
|
||||||
+ if os.access(RELABELFILE, os.F_OK) != 0 and self.doDebug == False:
|
|
||||||
+ os.unlink(RELABELFILE)
|
|
||||||
+
|
|
||||||
+ return retval
|
|
||||||
+
|
|
||||||
+
|
+
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/system-config-selinux.glade policycoreutils-1.33.1/gui/system-config-selinux.glade
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/system-config-selinux.glade policycoreutils-1.33.1/gui/system-config-selinux.glade
|
||||||
--- nsapolicycoreutils/gui/system-config-selinux.glade 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/system-config-selinux.glade 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/system-config-selinux.glade 2006-11-15 18:21:26.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/system-config-selinux.glade 2006-11-17 11:52:26.000000000 -0500
|
||||||
@@ -0,0 +1,2784 @@
|
@@ -0,0 +1,2792 @@
|
||||||
+<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
+<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||||
+<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
+<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||||
+
|
+
|
||||||
@ -2883,9 +2872,11 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ <widget class="GtkHPaned" id="hpaned1">
|
+ <widget class="GtkHPaned" id="hpaned1">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="can_focus">True</property>
|
+ <property name="can_focus">True</property>
|
||||||
|
+ <property name="position">0</property>
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkFrame" id="frame1">
|
+ <widget class="GtkFrame" id="frame1">
|
||||||
|
+ <property name="border_width">5</property>
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="label_xalign">0</property>
|
+ <property name="label_xalign">0</property>
|
||||||
+ <property name="label_yalign">0.5</property>
|
+ <property name="label_yalign">0.5</property>
|
||||||
@ -2944,17 +2935,16 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ </child>
|
+ </child>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
+ <packing>
|
+ <packing>
|
||||||
+ <property name="shrink">True</property>
|
+ <property name="shrink">False</property>
|
||||||
+ <property name="resize">False</property>
|
+ <property name="resize">True</property>
|
||||||
+ </packing>
|
+ </packing>
|
||||||
+ </child>
|
+ </child>
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkNotebook" id="notebook">
|
+ <widget class="GtkNotebook" id="notebook">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="can_focus">True</property>
|
|
||||||
+ <property name="show_tabs">False</property>
|
+ <property name="show_tabs">False</property>
|
||||||
+ <property name="show_border">False</property>
|
+ <property name="show_border">True</property>
|
||||||
+ <property name="tab_pos">GTK_POS_TOP</property>
|
+ <property name="tab_pos">GTK_POS_TOP</property>
|
||||||
+ <property name="scrollable">False</property>
|
+ <property name="scrollable">False</property>
|
||||||
+ <property name="enable_popup">False</property>
|
+ <property name="enable_popup">False</property>
|
||||||
@ -2966,158 +2956,18 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ <property name="spacing">0</property>
|
+ <property name="spacing">0</property>
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkFrame" id="frame1">
|
+ <widget class="GtkTable" id="table6">
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="label_xalign">0</property>
|
|
||||||
+ <property name="label_yalign">0.5</property>
|
|
||||||
+ <property name="shadow_type">GTK_SHADOW_NONE</property>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkAlignment" id="alignment1">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="xalign">0.5</property>
|
|
||||||
+ <property name="yalign">0.5</property>
|
|
||||||
+ <property name="xscale">1</property>
|
|
||||||
+ <property name="yscale">1</property>
|
|
||||||
+ <property name="top_padding">0</property>
|
|
||||||
+ <property name="bottom_padding">0</property>
|
|
||||||
+ <property name="left_padding">12</property>
|
|
||||||
+ <property name="right_padding">0</property>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkHBox" id="hbox4">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="homogeneous">False</property>
|
|
||||||
+ <property name="spacing">0</property>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkLabel" id="label28">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="label" translatable="yes">Current </property>
|
|
||||||
+ <property name="use_underline">False</property>
|
|
||||||
+ <property name="use_markup">False</property>
|
|
||||||
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
+ <property name="wrap">False</property>
|
|
||||||
+ <property name="selectable">False</property>
|
|
||||||
+ <property name="xalign">0.5</property>
|
|
||||||
+ <property name="yalign">0.5</property>
|
|
||||||
+ <property name="xpad">0</property>
|
|
||||||
+ <property name="ypad">0</property>
|
|
||||||
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
|
||||||
+ <property name="width_chars">-1</property>
|
|
||||||
+ <property name="single_line_mode">False</property>
|
|
||||||
+ <property name="angle">0</property>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="padding">3</property>
|
|
||||||
+ <property name="expand">False</property>
|
|
||||||
+ <property name="fill">False</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkComboBox" id="currentOptionMenu">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="items" translatable="yes">Enforcing
|
|
||||||
+Permissive
|
|
||||||
+Disabled
|
|
||||||
+</property>
|
|
||||||
+ <property name="add_tearoffs">False</property>
|
|
||||||
+ <property name="focus_on_click">True</property>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="padding">0</property>
|
|
||||||
+ <property name="expand">True</property>
|
|
||||||
+ <property name="fill">True</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkLabel" id="label29">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="label" translatable="yes">System Default</property>
|
|
||||||
+ <property name="use_underline">False</property>
|
|
||||||
+ <property name="use_markup">False</property>
|
|
||||||
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
+ <property name="wrap">False</property>
|
|
||||||
+ <property name="selectable">False</property>
|
|
||||||
+ <property name="xalign">0.5</property>
|
|
||||||
+ <property name="yalign">0.5</property>
|
|
||||||
+ <property name="xpad">0</property>
|
|
||||||
+ <property name="ypad">0</property>
|
|
||||||
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
|
||||||
+ <property name="width_chars">-1</property>
|
|
||||||
+ <property name="single_line_mode">False</property>
|
|
||||||
+ <property name="angle">0</property>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="padding">6</property>
|
|
||||||
+ <property name="expand">False</property>
|
|
||||||
+ <property name="fill">False</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkComboBox" id="enabledOptionMenu">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="items" translatable="yes">Enforcing
|
|
||||||
+Permissive
|
|
||||||
+Disabled
|
|
||||||
+</property>
|
|
||||||
+ <property name="add_tearoffs">False</property>
|
|
||||||
+ <property name="focus_on_click">True</property>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="padding">0</property>
|
|
||||||
+ <property name="expand">True</property>
|
|
||||||
+ <property name="fill">True</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+ </widget>
|
|
||||||
+ </child>
|
|
||||||
+ </widget>
|
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkLabel" id="label30">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="label" translatable="yes"><b>Enforcement Mode</b></property>
|
|
||||||
+ <property name="use_underline">False</property>
|
|
||||||
+ <property name="use_markup">True</property>
|
|
||||||
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
+ <property name="wrap">False</property>
|
|
||||||
+ <property name="selectable">False</property>
|
|
||||||
+ <property name="xalign">0.5</property>
|
|
||||||
+ <property name="yalign">0.5</property>
|
|
||||||
+ <property name="xpad">0</property>
|
|
||||||
+ <property name="ypad">0</property>
|
|
||||||
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
|
||||||
+ <property name="width_chars">-1</property>
|
|
||||||
+ <property name="single_line_mode">False</property>
|
|
||||||
+ <property name="angle">0</property>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="type">label_item</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="padding">5</property>
|
|
||||||
+ <property name="expand">False</property>
|
|
||||||
+ <property name="fill">False</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkHBox" id="hbox2">
|
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="n_rows">4</property>
|
||||||
|
+ <property name="n_columns">2</property>
|
||||||
+ <property name="homogeneous">False</property>
|
+ <property name="homogeneous">False</property>
|
||||||
+ <property name="spacing">0</property>
|
+ <property name="row_spacing">5</property>
|
||||||
|
+ <property name="column_spacing">5</property>
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkLabel" id="typeLabel">
|
+ <widget class="GtkLabel" id="label29">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="label" translatable="yes">Policy Type: </property>
|
+ <property name="label" translatable="yes">System Default Enforcing Mode</property>
|
||||||
+ <property name="use_underline">False</property>
|
+ <property name="use_underline">False</property>
|
||||||
+ <property name="use_markup">False</property>
|
+ <property name="use_markup">False</property>
|
||||||
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
@ -3133,9 +2983,104 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ <property name="angle">0</property>
|
+ <property name="angle">0</property>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
+ <packing>
|
+ <packing>
|
||||||
+ <property name="padding">0</property>
|
+ <property name="left_attach">0</property>
|
||||||
+ <property name="expand">False</property>
|
+ <property name="right_attach">1</property>
|
||||||
+ <property name="fill">True</property>
|
+ <property name="top_attach">0</property>
|
||||||
|
+ <property name="bottom_attach">1</property>
|
||||||
|
+ <property name="x_options">fill</property>
|
||||||
|
+ <property name="y_options"></property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
|
+ <widget class="GtkComboBox" id="enabledOptionMenu">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="items" translatable="yes">Enforcing
|
||||||
|
+Permissive
|
||||||
|
+Disabled
|
||||||
|
+</property>
|
||||||
|
+ <property name="add_tearoffs">False</property>
|
||||||
|
+ <property name="focus_on_click">True</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="left_attach">1</property>
|
||||||
|
+ <property name="right_attach">2</property>
|
||||||
|
+ <property name="top_attach">0</property>
|
||||||
|
+ <property name="bottom_attach">1</property>
|
||||||
|
+ <property name="y_options">fill</property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
|
+ <widget class="GtkLabel" id="label48">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="label" translatable="yes">Current Enforcing Mode</property>
|
||||||
|
+ <property name="use_underline">False</property>
|
||||||
|
+ <property name="use_markup">False</property>
|
||||||
|
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
+ <property name="wrap">False</property>
|
||||||
|
+ <property name="selectable">False</property>
|
||||||
|
+ <property name="xalign">0.5</property>
|
||||||
|
+ <property name="yalign">0.5</property>
|
||||||
|
+ <property name="xpad">0</property>
|
||||||
|
+ <property name="ypad">0</property>
|
||||||
|
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
+ <property name="width_chars">-1</property>
|
||||||
|
+ <property name="single_line_mode">False</property>
|
||||||
|
+ <property name="angle">0</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="left_attach">0</property>
|
||||||
|
+ <property name="right_attach">1</property>
|
||||||
|
+ <property name="top_attach">1</property>
|
||||||
|
+ <property name="bottom_attach">2</property>
|
||||||
|
+ <property name="x_options">fill</property>
|
||||||
|
+ <property name="y_options"></property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
|
+ <widget class="GtkComboBox" id="currentOptionMenu">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="items" translatable="yes"></property>
|
||||||
|
+ <property name="add_tearoffs">False</property>
|
||||||
|
+ <property name="focus_on_click">True</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="left_attach">1</property>
|
||||||
|
+ <property name="right_attach">2</property>
|
||||||
|
+ <property name="top_attach">1</property>
|
||||||
|
+ <property name="bottom_attach">2</property>
|
||||||
|
+ <property name="x_options">fill</property>
|
||||||
|
+ <property name="y_options">fill</property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
|
+ <widget class="GtkLabel" id="typeLabel">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="label" translatable="yes">System Default Policy Type: </property>
|
||||||
|
+ <property name="use_underline">False</property>
|
||||||
|
+ <property name="use_markup">False</property>
|
||||||
|
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
+ <property name="wrap">False</property>
|
||||||
|
+ <property name="selectable">False</property>
|
||||||
|
+ <property name="xalign">0.5</property>
|
||||||
|
+ <property name="yalign">0.5</property>
|
||||||
|
+ <property name="xpad">0</property>
|
||||||
|
+ <property name="ypad">0</property>
|
||||||
|
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
+ <property name="width_chars">-1</property>
|
||||||
|
+ <property name="single_line_mode">False</property>
|
||||||
|
+ <property name="angle">0</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="left_attach">0</property>
|
||||||
|
+ <property name="right_attach">1</property>
|
||||||
|
+ <property name="top_attach">2</property>
|
||||||
|
+ <property name="bottom_attach">3</property>
|
||||||
|
+ <property name="x_options">fill</property>
|
||||||
|
+ <property name="y_options"></property>
|
||||||
+ </packing>
|
+ </packing>
|
||||||
+ </child>
|
+ </child>
|
||||||
+
|
+
|
||||||
@ -3147,86 +3092,97 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ <property name="focus_on_click">True</property>
|
+ <property name="focus_on_click">True</property>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
+ <packing>
|
+ <packing>
|
||||||
+ <property name="padding">0</property>
|
+ <property name="left_attach">1</property>
|
||||||
+ <property name="expand">True</property>
|
+ <property name="right_attach">2</property>
|
||||||
+ <property name="fill">True</property>
|
+ <property name="top_attach">2</property>
|
||||||
+ <property name="pack_type">GTK_PACK_END</property>
|
+ <property name="bottom_attach">3</property>
|
||||||
|
+ <property name="x_options">fill</property>
|
||||||
|
+ <property name="y_options">fill</property>
|
||||||
+ </packing>
|
+ </packing>
|
||||||
+ </child>
|
+ </child>
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
|
||||||
+ <property name="padding">9</property>
|
|
||||||
+ <property name="expand">False</property>
|
|
||||||
+ <property name="fill">False</property>
|
|
||||||
+ </packing>
|
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkFrame" id="Booleans">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="label_xalign">0</property>
|
|
||||||
+ <property name="label_yalign">0.5</property>
|
|
||||||
+ <property name="shadow_type">GTK_SHADOW_NONE</property>
|
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkAlignment" id="alignment2">
|
+ <widget class="GtkCheckButton" id="relabelCheckbutton">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="xalign">0.5</property>
|
+ <property name="tooltip" translatable="yes">Select if you wish to relabel then entire file system on next reboot. Relabeling can take a very long time, depending on the size of the system. If you are changing policy types or going from disabled to enforing, a relabel is required.</property>
|
||||||
+ <property name="yalign">0.5</property>
|
+ <property name="can_focus">True</property>
|
||||||
+ <property name="xscale">1</property>
|
+ <property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
+ <property name="yscale">1</property>
|
+ <property name="focus_on_click">True</property>
|
||||||
+ <property name="top_padding">0</property>
|
+ <property name="active">False</property>
|
||||||
+ <property name="bottom_padding">0</property>
|
+ <property name="inconsistent">False</property>
|
||||||
+ <property name="left_padding">12</property>
|
+ <property name="draw_indicator">True</property>
|
||||||
+ <property name="right_padding">0</property>
|
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkScrolledWindow" id="scrolledwindow10">
|
+ <widget class="GtkAlignment" id="alignment4">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="can_focus">True</property>
|
+ <property name="xalign">0.5</property>
|
||||||
+ <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
+ <property name="yalign">0.5</property>
|
||||||
+ <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
+ <property name="xscale">0</property>
|
||||||
+ <property name="shadow_type">GTK_SHADOW_NONE</property>
|
+ <property name="yscale">0</property>
|
||||||
+ <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
+ <property name="top_padding">0</property>
|
||||||
|
+ <property name="bottom_padding">0</property>
|
||||||
|
+ <property name="left_padding">0</property>
|
||||||
|
+ <property name="right_padding">0</property>
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
+ <widget class="GtkTreeView" id="booleansView">
|
+ <widget class="GtkHBox" id="hbox6">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="can_focus">True</property>
|
+ <property name="homogeneous">False</property>
|
||||||
+ <property name="headers_visible">False</property>
|
+ <property name="spacing">2</property>
|
||||||
+ <property name="rules_hint">False</property>
|
+
|
||||||
+ <property name="reorderable">False</property>
|
+ <child>
|
||||||
+ <property name="enable_search">True</property>
|
+ <widget class="GtkImage" id="image2">
|
||||||
+ <property name="fixed_height_mode">False</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="hover_selection">False</property>
|
+ <property name="stock">gtk-refresh</property>
|
||||||
+ <property name="hover_expand">False</property>
|
+ <property name="icon_size">4</property>
|
||||||
|
+ <property name="xalign">0.5</property>
|
||||||
|
+ <property name="yalign">0.5</property>
|
||||||
|
+ <property name="xpad">0</property>
|
||||||
|
+ <property name="ypad">0</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="padding">0</property>
|
||||||
|
+ <property name="expand">False</property>
|
||||||
|
+ <property name="fill">False</property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
|
+ <widget class="GtkLabel" id="label49">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="label" translatable="yes">Relabel on next reboot.</property>
|
||||||
|
+ <property name="use_underline">True</property>
|
||||||
|
+ <property name="use_markup">False</property>
|
||||||
|
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
+ <property name="wrap">False</property>
|
||||||
|
+ <property name="selectable">False</property>
|
||||||
|
+ <property name="xalign">0.5</property>
|
||||||
|
+ <property name="yalign">0.5</property>
|
||||||
|
+ <property name="xpad">0</property>
|
||||||
|
+ <property name="ypad">0</property>
|
||||||
|
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
+ <property name="width_chars">-1</property>
|
||||||
|
+ <property name="single_line_mode">False</property>
|
||||||
|
+ <property name="angle">0</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="padding">0</property>
|
||||||
|
+ <property name="expand">False</property>
|
||||||
|
+ <property name="fill">False</property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
+ </child>
|
+ </child>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
+ </child>
|
+ </child>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
+ </child>
|
|
||||||
+
|
|
||||||
+ <child>
|
|
||||||
+ <widget class="GtkLabel" id="label32">
|
|
||||||
+ <property name="visible">True</property>
|
|
||||||
+ <property name="label" translatable="yes"><b>Booleans</b></property>
|
|
||||||
+ <property name="use_underline">False</property>
|
|
||||||
+ <property name="use_markup">True</property>
|
|
||||||
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
+ <property name="wrap">False</property>
|
|
||||||
+ <property name="selectable">False</property>
|
|
||||||
+ <property name="xalign">0.5</property>
|
|
||||||
+ <property name="yalign">0.5</property>
|
|
||||||
+ <property name="xpad">5</property>
|
|
||||||
+ <property name="ypad">3</property>
|
|
||||||
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
|
||||||
+ <property name="width_chars">-1</property>
|
|
||||||
+ <property name="single_line_mode">False</property>
|
|
||||||
+ <property name="angle">0</property>
|
|
||||||
+ </widget>
|
|
||||||
+ <packing>
|
+ <packing>
|
||||||
+ <property name="type">label_item</property>
|
+ <property name="left_attach">0</property>
|
||||||
|
+ <property name="right_attach">2</property>
|
||||||
|
+ <property name="top_attach">3</property>
|
||||||
|
+ <property name="bottom_attach">4</property>
|
||||||
|
+ <property name="x_options">fill</property>
|
||||||
|
+ <property name="y_options">fill</property>
|
||||||
+ </packing>
|
+ </packing>
|
||||||
+ </child>
|
+ </child>
|
||||||
+ </widget>
|
+ </widget>
|
||||||
@ -3267,6 +3223,47 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ </child>
|
+ </child>
|
||||||
+
|
+
|
||||||
+ <child>
|
+ <child>
|
||||||
|
+ <widget class="GtkTreeView" id="booleansView">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="can_focus">True</property>
|
||||||
|
+ <property name="headers_visible">False</property>
|
||||||
|
+ <property name="rules_hint">False</property>
|
||||||
|
+ <property name="reorderable">False</property>
|
||||||
|
+ <property name="enable_search">True</property>
|
||||||
|
+ <property name="fixed_height_mode">False</property>
|
||||||
|
+ <property name="hover_selection">False</property>
|
||||||
|
+ <property name="hover_expand">False</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="tab_expand">False</property>
|
||||||
|
+ <property name="tab_fill">True</property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
|
+ <widget class="GtkLabel" id="label50">
|
||||||
|
+ <property name="visible">True</property>
|
||||||
|
+ <property name="label" translatable="yes">label50</property>
|
||||||
|
+ <property name="use_underline">False</property>
|
||||||
|
+ <property name="use_markup">False</property>
|
||||||
|
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||||
|
+ <property name="wrap">False</property>
|
||||||
|
+ <property name="selectable">False</property>
|
||||||
|
+ <property name="xalign">0.5</property>
|
||||||
|
+ <property name="yalign">0.5</property>
|
||||||
|
+ <property name="xpad">0</property>
|
||||||
|
+ <property name="ypad">0</property>
|
||||||
|
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||||
|
+ <property name="width_chars">-1</property>
|
||||||
|
+ <property name="single_line_mode">False</property>
|
||||||
|
+ <property name="angle">0</property>
|
||||||
|
+ </widget>
|
||||||
|
+ <packing>
|
||||||
|
+ <property name="type">tab</property>
|
||||||
|
+ </packing>
|
||||||
|
+ </child>
|
||||||
|
+
|
||||||
|
+ <child>
|
||||||
+ <widget class="GtkVBox" id="vbox11">
|
+ <widget class="GtkVBox" id="vbox11">
|
||||||
+ <property name="visible">True</property>
|
+ <property name="visible">True</property>
|
||||||
+ <property name="homogeneous">False</property>
|
+ <property name="homogeneous">False</property>
|
||||||
@ -4216,8 +4213,8 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+</glade-interface>
|
+</glade-interface>
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/system-config-selinux.py policycoreutils-1.33.1/gui/system-config-selinux.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/system-config-selinux.py policycoreutils-1.33.1/gui/system-config-selinux.py
|
||||||
--- nsapolicycoreutils/gui/system-config-selinux.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/system-config-selinux.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/system-config-selinux.py 2006-11-16 14:18:35.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/system-config-selinux.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,164 @@
|
@@ -0,0 +1,156 @@
|
||||||
+#!/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
|
||||||
@ -4295,21 +4292,23 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ xml.signal_connect("on_delete_clicked", self.delete)
|
+ xml.signal_connect("on_delete_clicked", self.delete)
|
||||||
+ xml.signal_connect("on_add_clicked", self.add)
|
+ xml.signal_connect("on_add_clicked", self.add)
|
||||||
+ xml.signal_connect("on_properties_clicked", self.properties)
|
+ xml.signal_connect("on_properties_clicked", self.properties)
|
||||||
+ self.status_page=statusPage.statusPage(xml)
|
+ self.add_page(statusPage.statusPage(xml))
|
||||||
+ self.tabs.append(booleansPage.booleansPage(xml))
|
+ self.add_page(booleansPage.booleansPage(xml))
|
||||||
+ self.tabs.append(fcontextPage.fcontextPage(xml))
|
+ self.add_page(fcontextPage.fcontextPage(xml))
|
||||||
+ self.tabs.append(loginsPage.loginsPage(xml))
|
+ self.add_page(loginsPage.loginsPage(xml))
|
||||||
+ self.tabs.append(usersPage.usersPage(xml))
|
+ self.add_page(usersPage.usersPage(xml))
|
||||||
+ self.tabs.append(translationsPage.translationsPage(xml))
|
+ self.add_page(translationsPage.translationsPage(xml))
|
||||||
+ self.tabs.append(portsPage.portsPage(xml))
|
+ self.add_page(portsPage.portsPage(xml))
|
||||||
+ self.tabs.append(modulesPage.modulesPage(xml)) # modules
|
+ self.add_page(modulesPage.modulesPage(xml)) # modules
|
||||||
+ self.tabs.append(None) # interfaces
|
|
||||||
+
|
+
|
||||||
+ xml.signal_connect("on_quit_activate", self.destroy)
|
+ xml.signal_connect("on_quit_activate", self.destroy)
|
||||||
+ xml.signal_connect("on_policy_activate", self.policy)
|
+ xml.signal_connect("on_policy_activate", self.policy)
|
||||||
+ xml.signal_connect("on_logging_activate", self.logging)
|
+ xml.signal_connect("on_logging_activate", self.logging)
|
||||||
+ xml.signal_connect("on_about_activate", self.on_about_activate)
|
+ xml.signal_connect("on_about_activate", self.on_about_activate)
|
||||||
+
|
+
|
||||||
|
+ def add_page(self, page):
|
||||||
|
+ self.tabs.append(page)
|
||||||
|
+
|
||||||
+ def policy(self, args):
|
+ def policy(self, args):
|
||||||
+ os.spawnl(os.P_NOWAIT, "/usr/share/system-config-selinux/semanagegui.py")
|
+ os.spawnl(os.P_NOWAIT, "/usr/share/system-config-selinux/semanagegui.py")
|
||||||
+ def logging(self, args):
|
+ def logging(self, args):
|
||||||
@ -4351,20 +4350,10 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ col = gtk.TreeViewColumn("", gtk.CellRendererText(), text = 0)
|
+ col = gtk.TreeViewColumn("", gtk.CellRendererText(), text = 0)
|
||||||
+ col.set_resizable(True)
|
+ col.set_resizable(True)
|
||||||
+ self.view.append_column(col)
|
+ self.view.append_column(col)
|
||||||
+ iter = self.store.append()
|
+
|
||||||
+ self.store.set_value(iter, 0, _("Setup"))
|
+ for page in self.tabs:
|
||||||
+ iter = self.store.append()
|
+ iter = self.store.append()
|
||||||
+ self.store.set_value(iter, 0, _("File Contexts"))
|
+ self.store.set_value(iter, 0, page.get_description())
|
||||||
+ iter = self.store.append()
|
|
||||||
+ self.store.set_value(iter, 0, _("SELinux User/Login Mappings"))
|
|
||||||
+ iter = self.store.append()
|
|
||||||
+ self.store.set_value(iter, 0, _("SELinux Users"))
|
|
||||||
+ iter = self.store.append()
|
|
||||||
+ self.store.set_value(iter, 0, _("Translations"))
|
|
||||||
+ iter = self.store.append()
|
|
||||||
+ self.store.set_value(iter, 0, _("Network Ports"))
|
|
||||||
+ iter = self.store.append()
|
|
||||||
+ self.store.set_value(iter, 0, _("Policy Modules"))
|
|
||||||
+ self.view.get_selection().select_path ((0,))
|
+ self.view.get_selection().select_path ((0,))
|
||||||
+
|
+
|
||||||
+ def stand_alone(self):
|
+ def stand_alone(self):
|
||||||
@ -4384,7 +4373,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ app.stand_alone()
|
+ app.stand_alone()
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/translationsPage.py policycoreutils-1.33.1/gui/translationsPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/translationsPage.py policycoreutils-1.33.1/gui/translationsPage.py
|
||||||
--- nsapolicycoreutils/gui/translationsPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/translationsPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/translationsPage.py 2006-11-15 18:22:46.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/translationsPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,109 @@
|
@@ -0,0 +1,109 @@
|
||||||
+## translationsPage.py - show selinux translations
|
+## translationsPage.py - show selinux translations
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -4497,7 +4486,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.store.set_value(iter, 1, translation)
|
+ self.store.set_value(iter, 1, translation)
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/usersPage.py policycoreutils-1.33.1/gui/usersPage.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/gui/usersPage.py policycoreutils-1.33.1/gui/usersPage.py
|
||||||
--- nsapolicycoreutils/gui/usersPage.py 1969-12-31 19:00:00.000000000 -0500
|
--- nsapolicycoreutils/gui/usersPage.py 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/gui/usersPage.py 2006-11-15 18:22:46.000000000 -0500
|
+++ policycoreutils-1.33.1/gui/usersPage.py 2006-11-17 11:52:44.000000000 -0500
|
||||||
@@ -0,0 +1,155 @@
|
@@ -0,0 +1,155 @@
|
||||||
+## usersPage.py - show selinux mappings
|
+## usersPage.py - show selinux mappings
|
||||||
+## Copyright (C) 2006 Red Hat, Inc.
|
+## Copyright (C) 2006 Red Hat, Inc.
|
||||||
@ -4542,7 +4531,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+
|
+
|
||||||
+class usersPage(semanagePage):
|
+class usersPage(semanagePage):
|
||||||
+ def __init__(self, xml):
|
+ def __init__(self, xml):
|
||||||
+ semanagePage.__init__(self, xml, "users", "User")
|
+ semanagePage.__init__(self, xml, "users", "SELinux User")
|
||||||
+ self.store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING)
|
+ self.store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING)
|
||||||
+ self.view.set_model(self.store)
|
+ self.view.set_model(self.store)
|
||||||
+ self.store.set_sort_column_id(0, gtk.SORT_ASCENDING)
|
+ self.store.set_sort_column_id(0, gtk.SORT_ASCENDING)
|
||||||
@ -4655,7 +4644,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
+ self.error(e.args[0])
|
+ self.error(e.args[0])
|
||||||
+
|
+
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/Makefile policycoreutils-1.33.1/Makefile
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/Makefile policycoreutils-1.33.1/Makefile
|
||||||
--- nsapolicycoreutils/Makefile 2006-08-28 16:58:22.000000000 -0400
|
--- nsapolicycoreutils/Makefile 2006-11-16 17:15:00.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/Makefile 2006-11-14 09:54:05.000000000 -0500
|
+++ policycoreutils-1.33.1/Makefile 2006-11-14 09:54:05.000000000 -0500
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-SUBDIRS=setfiles semanage load_policy newrole run_init restorecon restorecond secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po
|
-SUBDIRS=setfiles semanage load_policy newrole run_init restorecon restorecond secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po
|
||||||
@ -4664,8 +4653,8 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
all install relabel clean indent:
|
all install relabel clean indent:
|
||||||
@for subdir in $(SUBDIRS); do \
|
@for subdir in $(SUBDIRS); do \
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/newrole/newrole.c policycoreutils-1.33.1/newrole/newrole.c
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/newrole/newrole.c policycoreutils-1.33.1/newrole/newrole.c
|
||||||
--- nsapolicycoreutils/newrole/newrole.c 2006-11-14 09:46:12.000000000 -0500
|
--- nsapolicycoreutils/newrole/newrole.c 2006-11-16 17:14:32.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/newrole/newrole.c 2006-11-14 09:55:30.000000000 -0500
|
+++ policycoreutils-1.33.1/newrole/newrole.c 2006-11-17 11:55:39.000000000 -0500
|
||||||
@@ -1028,6 +1028,7 @@
|
@@ -1028,6 +1028,7 @@
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("newrole: incorrect password for %s\n"),
|
fprintf(stderr, _("newrole: incorrect password for %s\n"),
|
||||||
@ -4674,8 +4663,26 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
goto err_close_pam;
|
goto err_close_pam;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1067,11 +1068,16 @@
|
||||||
|
*/
|
||||||
|
int rc;
|
||||||
|
int exit_code = 0;
|
||||||
|
+ int status;
|
||||||
|
|
||||||
|
do {
|
||||||
|
- rc = wait(NULL);
|
||||||
|
+ rc = wait(&status);
|
||||||
|
} while (rc < 0 && errno == EINTR);
|
||||||
|
|
||||||
|
+ /* Preserve child exit status, unless there is another error. */
|
||||||
|
+ if (WIFEXITED(status))
|
||||||
|
+ exit_code = WEXITSTATUS(status);
|
||||||
|
+
|
||||||
|
if (restore_tty_label(fd, ttyn, tty_context, new_tty_context)) {
|
||||||
|
fprintf(stderr, _("Unable to restore tty label...\n"));
|
||||||
|
exit_code = -1;
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/restorecond/Makefile policycoreutils-1.33.1/restorecond/Makefile
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/restorecond/Makefile policycoreutils-1.33.1/restorecond/Makefile
|
||||||
--- nsapolicycoreutils/restorecond/Makefile 2006-08-28 16:58:19.000000000 -0400
|
--- nsapolicycoreutils/restorecond/Makefile 2006-11-16 17:14:28.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/restorecond/Makefile 2006-11-14 09:54:05.000000000 -0500
|
+++ policycoreutils-1.33.1/restorecond/Makefile 2006-11-14 09:54:05.000000000 -0500
|
||||||
@@ -5,8 +5,9 @@
|
@@ -5,8 +5,9 @@
|
||||||
INITDIR = $(DESTDIR)/etc/rc.d/init.d
|
INITDIR = $(DESTDIR)/etc/rc.d/init.d
|
||||||
@ -4690,7 +4697,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
|
|
||||||
all: restorecond
|
all: restorecond
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/restorecond/restorecond.conf policycoreutils-1.33.1/restorecond/restorecond.conf
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/restorecond/restorecond.conf policycoreutils-1.33.1/restorecond/restorecond.conf
|
||||||
--- nsapolicycoreutils/restorecond/restorecond.conf 2006-08-28 16:58:19.000000000 -0400
|
--- nsapolicycoreutils/restorecond/restorecond.conf 2006-11-16 17:14:28.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/restorecond/restorecond.conf 2006-11-14 09:54:05.000000000 -0500
|
+++ policycoreutils-1.33.1/restorecond/restorecond.conf 2006-11-14 09:54:05.000000000 -0500
|
||||||
@@ -2,5 +2,6 @@
|
@@ -2,5 +2,6 @@
|
||||||
/etc/samba/secrets.tdb
|
/etc/samba/secrets.tdb
|
||||||
@ -4700,7 +4707,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
~/public_html
|
~/public_html
|
||||||
~/.mozilla/plugins/libflashplayer.so
|
~/.mozilla/plugins/libflashplayer.so
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/run_init/run_init.c policycoreutils-1.33.1/run_init/run_init.c
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/run_init/run_init.c policycoreutils-1.33.1/run_init/run_init.c
|
||||||
--- nsapolicycoreutils/run_init/run_init.c 2006-08-28 16:58:19.000000000 -0400
|
--- nsapolicycoreutils/run_init/run_init.c 2006-11-16 17:14:27.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/run_init/run_init.c 2006-11-16 09:37:03.000000000 -0500
|
+++ policycoreutils-1.33.1/run_init/run_init.c 2006-11-16 09:37:03.000000000 -0500
|
||||||
@@ -132,6 +132,14 @@
|
@@ -132,6 +132,14 @@
|
||||||
result = 1; /* user authenticated OK! */
|
result = 1; /* user authenticated OK! */
|
||||||
@ -4718,7 +4725,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
pam_end(pam_handle, PAM_SUCCESS);
|
pam_end(pam_handle, PAM_SUCCESS);
|
||||||
|
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/scripts/genhomedircon.8 policycoreutils-1.33.1/scripts/genhomedircon.8
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/scripts/genhomedircon.8 policycoreutils-1.33.1/scripts/genhomedircon.8
|
||||||
--- nsapolicycoreutils/scripts/genhomedircon.8 2006-08-28 16:58:19.000000000 -0400
|
--- nsapolicycoreutils/scripts/genhomedircon.8 2006-11-16 17:14:27.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/scripts/genhomedircon.8 2006-11-14 09:54:05.000000000 -0500
|
+++ policycoreutils-1.33.1/scripts/genhomedircon.8 2006-11-14 09:54:05.000000000 -0500
|
||||||
@@ -45,35 +45,30 @@
|
@@ -45,35 +45,30 @@
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@ -4774,8 +4781,8 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
This manual page was originally written by
|
This manual page was originally written by
|
||||||
.I Manoj Srivastava <srivasta@debian.org>,
|
.I Manoj Srivastava <srivasta@debian.org>,
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/semanage/semanage.8 policycoreutils-1.33.1/semanage/semanage.8
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/semanage/semanage.8 policycoreutils-1.33.1/semanage/semanage.8
|
||||||
--- nsapolicycoreutils/semanage/semanage.8 2006-09-14 08:07:24.000000000 -0400
|
--- nsapolicycoreutils/semanage/semanage.8 2006-11-16 17:14:26.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/semanage/semanage.8 2006-11-14 09:54:05.000000000 -0500
|
+++ policycoreutils-1.33.1/semanage/semanage.8 2006-11-17 09:57:31.000000000 -0500
|
||||||
@@ -7,7 +7,7 @@
|
@@ -7,7 +7,7 @@
|
||||||
.br
|
.br
|
||||||
.B semanage login \-{a|d|m} [\-sr] login_name
|
.B semanage login \-{a|d|m} [\-sr] login_name
|
||||||
@ -4795,8 +4802,18 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
.I \-s, \-\-seuser
|
.I \-s, \-\-seuser
|
||||||
SELinux user name
|
SELinux user name
|
||||||
.TP
|
.TP
|
||||||
|
@@ -79,9 +82,6 @@
|
||||||
|
.TP
|
||||||
|
.I \-T, \-\-trans
|
||||||
|
SELinux Translation
|
||||||
|
-.TP
|
||||||
|
-.I \-v, \-\-verbose
|
||||||
|
-verbose output
|
||||||
|
|
||||||
|
.SH EXAMPLE
|
||||||
|
.nf
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/semanage/seobject.py policycoreutils-1.33.1/semanage/seobject.py
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/semanage/seobject.py policycoreutils-1.33.1/semanage/seobject.py
|
||||||
--- nsapolicycoreutils/semanage/seobject.py 2006-10-17 12:04:55.000000000 -0400
|
--- nsapolicycoreutils/semanage/seobject.py 2006-11-16 17:14:26.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/semanage/seobject.py 2006-11-15 18:20:53.000000000 -0500
|
+++ policycoreutils-1.33.1/semanage/seobject.py 2006-11-15 18:20:53.000000000 -0500
|
||||||
@@ -94,23 +94,25 @@
|
@@ -94,23 +94,25 @@
|
||||||
return re.search("^" + reg +"$",raw)
|
return re.search("^" + reg +"$",raw)
|
||||||
@ -4879,7 +4896,7 @@ diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolic
|
|||||||
if len(roles) != 0:
|
if len(roles) != 0:
|
||||||
for r in roles:
|
for r in roles:
|
||||||
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/semodule_expand/semodule_expand.8 policycoreutils-1.33.1/semodule_expand/semodule_expand.8
|
diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/semodule_expand/semodule_expand.8 policycoreutils-1.33.1/semodule_expand/semodule_expand.8
|
||||||
--- nsapolicycoreutils/semodule_expand/semodule_expand.8 2006-08-28 16:58:20.000000000 -0400
|
--- nsapolicycoreutils/semodule_expand/semodule_expand.8 2006-11-16 17:14:34.000000000 -0500
|
||||||
+++ policycoreutils-1.33.1/semodule_expand/semodule_expand.8 2006-11-14 09:54:05.000000000 -0500
|
+++ policycoreutils-1.33.1/semodule_expand/semodule_expand.8 2006-11-14 09:54:05.000000000 -0500
|
||||||
@@ -18,7 +18,7 @@
|
@@ -18,7 +18,7 @@
|
||||||
.SH "OPTIONS"
|
.SH "OPTIONS"
|
||||||
|
Loading…
Reference in New Issue
Block a user