Compare commits

...

10 Commits
master ... f9

Author SHA1 Message Date
Fedora Release Engineering b6ab76d976 dist-git conversion 2010-07-29 12:38:49 +00:00
Bill Nottingham d39eebdffc Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:38:57 +00:00
Daniel J Walsh a0774e8b1b - Fix require block 2008-11-12 22:17:44 +00:00
Daniel J Walsh b023a8756d - Fix analyze to purge properly without recursing 2008-11-10 21:28:17 +00:00
Daniel J Walsh 5fb197870a - Fix requies gnome-python2 2008-11-10 17:35:14 +00:00
Daniel J Walsh 5873a5a21a - Update to upstream
- 2008-10-06 Dan Walsh <dwalsh@redhat.com>
- remove .png from desktop files
2008-11-10 16:50:36 +00:00
John Dennis 7178d43cf8 fix linebreak in spec file 2008-06-17 18:49:25 +00:00
John Dennis fc4f8f54dc fix capitalization of Socket module name in access_control.py 2008-06-17 13:12:59 +00:00
John Dennis 910a72602a update to latest upstream, fix bug in SO_PEERCRED for PPC arch, update po
translations
2008-05-16 16:17:54 +00:00
Jesse Keating f492389824 Initialize branch F-9 for setroubleshoot 2008-04-21 20:08:43 +00:00
7 changed files with 89 additions and 27 deletions

View File

@ -1 +0,0 @@
setroubleshoot-2.0.6.tar.gz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
setroubleshoot-2.0.8.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: setroubleshoot
# $Id: Makefile,v 1.1 2006/07/18 19:48:52 jdennis Exp $
NAME := setroubleshoot
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -0,0 +1,51 @@
diff -up setroubleshoot-2.0.12/src/analyze.py~ setroubleshoot-2.0.12/src/analyze.py
--- setroubleshoot-2.0.12/src/analyze.py~ 2008-09-22 15:40:57.000000000 -0400
+++ setroubleshoot-2.0.12/src/analyze.py 2008-11-10 16:20:45.000000000 -0500
@@ -278,7 +278,7 @@ class SETroubleshootDatabase(object):
self.sigs.signature_list[-1].last_seen_date.format())
sigs = [siginfo.sig for siginfo in self.sigs.signature_list[:keep]]
for sig in sigs:
- self.delete_signature(sig)
+ self.delete_signature(sig, False)
if self.max_alerts:
keep = len(self.sigs.signature_list) - self.max_alerts
@@ -287,7 +287,7 @@ class SETroubleshootDatabase(object):
if debug:
log_database.debug("prune first %d alerts, len(sigs=%d sigs=%s", keep, len(sigs), sigs)
for sig in sigs:
- self.delete_signature(sig)
+ self.delete_signature(sig, False)
def set_notify(self, notify):
self.notify = notify
@@ -412,15 +412,15 @@ class SETroubleshootDatabase(object):
sigs.add_siginfo(siginfo)
return sigs
- def delete_signature(self, sig):
- if debug:
- log_database.debug("delete_signature: sig=%s", sig)
+ def delete_signature(self, sig, mark = True):
+ log_database.debug("delete_signature: sig=%s", sig)
siginfo = self.lookup_signature(sig)
self.sigs.remove_siginfo(siginfo)
if self.notify:
self.notify.signatures_updated('delete', siginfo.local_id)
- self.mark_modified()
+ if mark:
+ self.mark_modified()
def modify_siginfo(self, siginfo):
if self.notify:
@@ -560,8 +560,7 @@ class LogfileAnalyzer(gobject.GObject):
log_avc.error('%s.open()', self.__class__.__name__, e.strerror)
self.errno = e.errno
self.strerror = e.strerror
- self.emit('state-changed', 'stopped')
- return False
+ raise e
self.n_bytes_read = 0
self.line_count = 0

View File

@ -12,8 +12,8 @@
### BEGIN INIT INFO
# Provides: lsb-setroubleshootd
# Required-Start: $local_fs $syslog $network $named
# Required-Stop: $local_fs $syslog $network $named
# Required-Start: $local_fs $syslog $network $named $messagebus
# Required-Stop: $local_fs $syslog $network $named $messagebus
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop SELinux Troubleshooting Daemon

View File

@ -1,13 +1,14 @@
Summary: Helps troubleshoot SELinux problems
Name: setroubleshoot
Version: 2.0.6
Release: 1%{?dist}
Version: 2.0.12
Release: 4%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://fedorahosted.org/setroubleshoot
Source0: %{name}-%{version}.tar.gz
Source1: setroubleshoot.init
Source2: setroubleshoot.logrotate
Patch: setroubleshoot-purge.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl-XML-Parser
@ -84,6 +85,7 @@ touch --no-create %{_datadir}/icons/hicolor
%prep
%setup -q
%patch -p1 -b .purge
%build
%configure
@ -182,6 +184,36 @@ rm -rf %{buildroot}
%attr(0755,root,root) /etc/rc.d/init.d/%{name}
%changelog
* Wed Nov 12 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.12-4
- Fix require block
* Mon Nov 10 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.12-3
- Fix analyze to purge properly without recursing
* Wed Oct 15 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.12-1
- Update to upstream
- 2008-10-06 Dan Walsh <dwalsh@redhat.com>
- remove .png from desktop files
* Mon Sep 22 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.11-1
- Update to upstream
- 2008-10-22 <jdennis@redhat.com>
- Fix pruning code
- Fix time stamps
* Wed Sep 10 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.10-2
- Fix requires line to gnome-python2-gnome
* Tue Sep 9 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.10-1
- Fix startup problems
* Tue Sep 9 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.8-2
- Fix setroubleshoot init to rely on messagebus being running
* Tue Sep 9 2008 Dan Walsh <dwalsh@redhat.com> - 2.0.8-1
- Fix spelling mistakes
- Update translations
* Thu Feb 21 2008 <jdennis@redhat.com> - 2.0.6-1
- add dialog to run a command in the background, capture it's stdout & stderr
report it's status, kill it, and pass it a pseudo terminal for password prompts

View File

@ -1 +1 @@
2b73ca05ecd413e7a0b280beb7862615 setroubleshoot-2.0.6.tar.gz
ac759999f07a51a29746503854890195 setroubleshoot-2.0.12.tar.gz