diff --git a/.cvsignore b/.cvsignore index 041989c..5b5aa23 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -setroubleshoot-0.25.tar.gz +setroubleshoot-0.27.tar.gz diff --git a/setroubleshoot.init b/setroubleshoot.init index 6d09d4c..425c8bf 100755 --- a/setroubleshoot.init +++ b/setroubleshoot.init @@ -74,6 +74,16 @@ condrestart(){ return 0 } +cleardb(){ + running=0 + [ -e /var/lock/subsys/$prog ] && running=1 + [ $running == 1 ] && stop + echo $"Clearing database" + rm -f /var/lib/setroubleshoot/database.xml + [ $running == 1 ] && start + return 0 +} + # See how we were called. case "$1" in @@ -95,8 +105,11 @@ case "$1" in condrestart) condrestart ;; + cleardb) + cleardb + ;; *) - echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" + echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|cleardb}" RETVAL=3 esac diff --git a/setroubleshoot.spec b/setroubleshoot.spec index 7168c35..57893d4 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -1,6 +1,6 @@ Summary: Helps troubleshoot SELinux problems Name: setroubleshoot -Version: 0.25 +Version: 0.27 Release: 1 License: GPL Group: Applications/System @@ -72,9 +72,8 @@ if [ $1 = 0 ]; then /sbin/chkconfig --del %{name} fi -%triggerpostun -- setroubleshoot <= 0.9-1 -/sbin/chkconfig --del %{name} -/sbin/chkconfig --add %{name} +%triggerpostun -- setroubleshoot <= 0.25-1 +/sbin/service %{name} cleardb %postun /usr/bin/update-desktop-database %{_datadir}/applications @@ -89,8 +88,12 @@ rm -rf %{buildroot} %{_sbindir}/* %{pkgpythondir} %{pkgdatadir} -%config(noreplace) %{pkgconfigdir}/%{name}.cfg -%dir %attr(0777,root,root) %{pkglogdir} +# Note: it is explicitly known the config file is not noreplace, +# this is because the config file during active development changes +# so much it's worse to be incompatible than lose a user modified value +# We'll set it back to noreplace when things stablize +%config %{pkgconfigdir}/%{name}.cfg +%dir %{pkglogdir} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %dir %{pkgrundir} %dir %{pkgvardatadir} @@ -102,6 +105,35 @@ rm -rf %{buildroot} %{_datadir}/pixmaps/*png %changelog +* Mon Aug 21 2006 John Dennis - 0.27-1 + * load_plugins() now catches exceptions when a plugin won't load, + reports the traceback in the log file, and continues with the next + plugin. Previously a bad plugin caused the entire plugin loading + to abort and no plugins were loaded. + + * Add "daemon_name" to automake variables, change pid file to match + + * turn off "noreplace" on config file till things settle down a bit + + * browser.py now validates data, also test for missing column data in the + cell_data function to avoid exceptions. + + * add stub for analyzie_logfile() rpc call + + * turn off balloon notifications by default in config file, + libnotify is just plain busted at this point :-( + + * only the setroubleshootd daemon creates it's log file + under /var/log now, the user app's do it in /tmp, change file + permissions on /var/log/setroubleshoot back to 0644. + + * sealert now looks up the username rather than hardcoding it to "foo" + + * CamelCase to lowercase_underscore clean up + +* Mon Aug 21 2006 Dan Walsh - 0.26-1 +- Zero out datbase.xml for updated browser + * Mon Aug 21 2006 Dan Walsh - 0.25-1 - Fix 64 bit issue that caused runaway problem diff --git a/sources b/sources index 9e6d707..9c8b98b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -adfbe964a43e47c7afbcf7102f01f6d8 setroubleshoot-0.25.tar.gz +6ebf7e9cb8bbc91c3634b3452b79c2a5 setroubleshoot-0.27.tar.gz