rpms/policycoreutils/devel policycoreutils-gui.patch, 1.42, 1.43 policycoreutils.spec, 1.464, 1.465

Daniel J Walsh (dwalsh) fedora-extras-commits at redhat.com
Wed Oct 17 03:39:19 UTC 2007


Author: dwalsh

Update of /cvs/extras/rpms/policycoreutils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6180

Modified Files:
	policycoreutils-gui.patch policycoreutils.spec 
Log Message:
* Tue Oct 16 2007 Dan Walsh <dwalsh at redhat.com> 2.0.31-5
- Fix enable/disable audit messages


policycoreutils-gui.patch:

Index: policycoreutils-gui.patch
===================================================================
RCS file: /cvs/extras/rpms/policycoreutils/devel/policycoreutils-gui.patch,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- policycoreutils-gui.patch	17 Oct 2007 01:33:45 -0000	1.42
+++ policycoreutils-gui.patch	17 Oct 2007 03:39:17 -0000	1.43
@@ -752,8 +752,8 @@
 +
 diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/modulesPage.py policycoreutils-2.0.31/gui/modulesPage.py
 --- nsapolicycoreutils/gui/modulesPage.py	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.31/gui/modulesPage.py	2007-10-15 16:55:03.000000000 -0400
-@@ -0,0 +1,181 @@
++++ policycoreutils-2.0.31/gui/modulesPage.py	2007-10-16 23:32:51.000000000 -0400
+@@ -0,0 +1,187 @@
 +## modulesPage.py - show selinux mappings
 +## Copyright (C) 2006 Red Hat, Inc.
 +
@@ -805,6 +805,7 @@
 +        self.module_filter = xml.get_widget("modulesFilterEntry")
 +        self.module_filter.connect("focus_out_event", self.filter_changed)
 +        self.module_filter.connect("activate", self.filter_changed)
++        self.audit_enabled = False
 +
 +        self.store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
 +        self.view.set_model(self.store)
@@ -817,8 +818,6 @@
 +        col = gtk.TreeViewColumn(_("Version"), gtk.CellRendererText(), text = 1)
 +        self.enable_audit_button = xml.get_widget("enableAuditButton")
 +        self.enable_audit_button.connect("clicked", self.enable_audit)
-+        self.disable_audit_button = xml.get_widget("disableAuditButton")
-+        self.disable_audit_button.connect("clicked", self.disable_audit)
 +        self.new_button = xml.get_widget("newModuleButton")
 +        self.new_button.connect("clicked", self.new_module)
 +        col.set_sort_column_id(1)
@@ -881,8 +880,15 @@
 +            self.error(e.args[0])
 +
 +    def enable_audit(self, button):
++        self.audit_enabled = not self.audit_enabled 
 +        try:
-+            status, output =commands.getstatusoutput("semodule -b /usr/share/selinux/%s/enableaudit.pp" % self.policy_type)
++            if self.audit_enabled:
++                status, output =commands.getstatusoutput("semodule -DB")
++                button.set_label(_("Disable Audit"))
++            else:
++                status, output =commands.getstatusoutput("semodule -B")
++                button.set_label(_("Enable Audit"))
++
 +            if status != 0:
 +                self.error(output)
 +
@@ -891,7 +897,7 @@
 +
 +    def disable_audit(self, button):
 +        try:
-+            status, output =commands.getstatusoutput("semodule -b /usr/share/selinux/%s/base.pp"  % self.policy_type)
++            status, output =commands.getstatusoutput("semodule -B")
 +            if status != 0:
 +                self.error(output)
 +
@@ -6318,8 +6324,8 @@
 +
 diff --exclude-from=exclude -N -u -r nsapolicycoreutils/gui/system-config-selinux.glade policycoreutils-2.0.31/gui/system-config-selinux.glade
 --- nsapolicycoreutils/gui/system-config-selinux.glade	1969-12-31 19:00:00.000000000 -0500
-+++ policycoreutils-2.0.31/gui/system-config-selinux.glade	2007-10-15 16:55:03.000000000 -0400
-@@ -0,0 +1,3339 @@
++++ policycoreutils-2.0.31/gui/system-config-selinux.glade	2007-10-16 23:32:02.000000000 -0400
+@@ -0,0 +1,3321 @@
 +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
 +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
 +
@@ -9472,7 +9478,7 @@
 +		      <child>
 +			<widget class="GtkToolButton" id="enableAuditButton">
 +			  <property name="visible">True</property>
-+			  <property name="tooltip" translatable="yes">Enable additional audit rules, that are normally not reported in the log files.</property>
++			  <property name="tooltip" translatable="yes">Enable/Disable additional audit rules, that are normally not reported in the log files.</property>
 +			  <property name="label" translatable="yes">Enable Audit</property>
 +			  <property name="use_underline">True</property>
 +			  <property name="stock_id">gtk-zoom-in</property>
@@ -9486,24 +9492,6 @@
 +			  <property name="homogeneous">True</property>
 +			</packing>
 +		      </child>
-+
-+		      <child>
-+			<widget class="GtkToolButton" id="disableAuditButton">
-+			  <property name="visible">True</property>
-+			  <property name="tooltip" translatable="yes">Disable additional audit rules, that are normally not reported in the log files.</property>
-+			  <property name="label" translatable="yes">Disable Audit</property>
-+			  <property name="use_underline">True</property>
-+			  <property name="stock_id">gtk-zoom-out</property>
-+			  <property name="visible_horizontal">True</property>
-+			  <property name="visible_vertical">True</property>
-+			  <property name="is_important">False</property>
-+			  <signal name="clicked" handler="on_disable_audit_clicked" last_modification_time="Wed, 15 Nov 2006 16:29:34 GMT"/>
-+			</widget>
-+			<packing>
-+			  <property name="expand">False</property>
-+			  <property name="homogeneous">True</property>
-+			</packing>
-+		      </child>
 +		    </widget>
 +		    <packing>
 +		      <property name="padding">0</property>


Index: policycoreutils.spec
===================================================================
RCS file: /cvs/extras/rpms/policycoreutils/devel/policycoreutils.spec,v
retrieving revision 1.464
retrieving revision 1.465
diff -u -r1.464 -r1.465
--- policycoreutils.spec	17 Oct 2007 01:33:45 -0000	1.464
+++ policycoreutils.spec	17 Oct 2007 03:39:17 -0000	1.465
@@ -6,7 +6,7 @@
 Summary: SELinux policy core utilities
 Name:	 policycoreutils
 Version: 2.0.31
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2+
 Group:	 System Environment/Base
 Source:	 http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
@@ -205,6 +205,9 @@
 fi
 
 %changelog
+* Tue Oct 16 2007 Dan Walsh <dwalsh at redhat.com> 2.0.31-5
+- Fix enable/disable audit messages
+
 * Mon Oct 15 2007 Dan Walsh <dwalsh at redhat.com> 2.0.31-4
 - Add booleans page
 




More information about the fedora-extras-commits mailing list