upgrade to upstream bug fix
This commit is contained in:
parent
d68203ce1c
commit
096a7f2ce0
@ -1 +1 @@
|
||||
setroubleshoot-2.0.1.tar.gz
|
||||
setroubleshoot-2.0.2.tar.gz
|
||||
|
@ -52,15 +52,30 @@ PATH=/sbin:/bin:/usr/bin:/usr/sbin
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
|
||||
RETVAL=0
|
||||
prog="setroubleshootd"
|
||||
|
||||
rhstatus(){
|
||||
status $prog
|
||||
RETVAL=$?
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
# Allow status as non-root and also if SELinux is disabled
|
||||
if [ "$1" = status ]; then
|
||||
rhstatus
|
||||
RETVAL=$?
|
||||
exit $RETVAL
|
||||
fi
|
||||
|
||||
# Silently exit is SELinux is not enabled
|
||||
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 1
|
||||
|
||||
# Check that we are root ... so non-root users stop here
|
||||
test `id -u` = 0 || exit 4
|
||||
|
||||
RETVAL=0
|
||||
|
||||
prog="setroubleshootd"
|
||||
if test `id -u` != 0; then
|
||||
echo "You must be root"
|
||||
exit 4
|
||||
fi
|
||||
|
||||
start(){
|
||||
echo -n $"Starting $prog: "
|
||||
@ -97,11 +112,14 @@ reload(){
|
||||
restart(){
|
||||
stop
|
||||
start
|
||||
RETVAL=$?
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
condrestart(){
|
||||
[ -e /var/lock/subsys/$prog ] && restart
|
||||
return 0
|
||||
RETVAL=0
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
cleardb(){
|
||||
@ -112,7 +130,8 @@ cleardb(){
|
||||
rm -f /var/lib/setroubleshoot/database.xml
|
||||
rm -f /var/lib/setroubleshoot/audit_listener_database.xml
|
||||
[ $running == 1 ] && start
|
||||
return 0
|
||||
RETVAL=0
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
|
||||
@ -120,24 +139,31 @@ cleardb(){
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
RETVAL=$?
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
RETVAL=$?
|
||||
;;
|
||||
status)
|
||||
status $prog
|
||||
rhstatus
|
||||
RETVAL=$?
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
RETVAL=$?
|
||||
;;
|
||||
force-reload|reload)
|
||||
reload
|
||||
RETVAL=$?
|
||||
;;
|
||||
try-restart|condrestart)
|
||||
condrestart
|
||||
RETVAL=$?
|
||||
;;
|
||||
cleardb)
|
||||
cleardb
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|status|restart|try-restart|condrestart|reload|force-reload|cleardb}"
|
||||
|
@ -1,6 +1,6 @@
|
||||
Summary: Helps troubleshoot SELinux problems
|
||||
Name: setroubleshoot
|
||||
Version: 2.0.1
|
||||
Version: 2.0.2
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@ -78,7 +78,7 @@ dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.r
|
||||
|
||||
%postun
|
||||
/usr/bin/update-desktop-database %{_datadir}/applications
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
touch --no-create %{_datadir}/icons/hicolor
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%prep
|
||||
@ -111,7 +111,7 @@ Requires: dbus-python
|
||||
Requires: libxml2-python
|
||||
Requires: libselinux-python
|
||||
Requires: audit-libs-python
|
||||
Requires: libuser
|
||||
Requires: libuser-python
|
||||
|
||||
BuildRequires: intltool gettext python
|
||||
|
||||
@ -129,8 +129,8 @@ to user preference. The same tools can be run on existing log files.
|
||||
|
||||
%post server
|
||||
if [ -f %{pkgdatabase} ]; then
|
||||
chown root:root %{pkgdatabase} >/dev/null 2>&1 || :
|
||||
chmod 600 %{pkgdatabase} >/dev/null 2>&1 || :
|
||||
chown root:root %{pkgdatabase} >/dev/null 2>&1
|
||||
chmod 600 %{pkgdatabase} >/dev/null 2>&1
|
||||
fi
|
||||
/sbin/chkconfig --add %{name}
|
||||
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
||||
@ -138,13 +138,9 @@ fi
|
||||
%preun server
|
||||
if [ $1 = 0 ]; then
|
||||
/sbin/service %{name} stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del %{name}
|
||||
/sbin/chkconfig --del %{name} || :
|
||||
fi
|
||||
|
||||
%triggerpostun -- setroubleshoot < 2.0.1
|
||||
/sbin/service %{name} cleardb
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
@ -186,6 +182,23 @@ rm -rf %{buildroot}
|
||||
%attr(0755,root,root) /etc/rc.d/init.d/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Jan 11 2008 <jdennis@redhat.com> - 2.0.2-1
|
||||
- Resolve bug #428252: Problem with update/remove old version
|
||||
- Add code to validate xml database version, if file is incompatible it is not read,
|
||||
the next time the database is written it will be in the new version format.
|
||||
This means the database contents are not preserved across database version upgrades.
|
||||
- Remove postun trigger from spec file used to clear database between incompatible versions
|
||||
the new database version check during database read will handle this instead
|
||||
- bullet proof exit status in init script and rpm scriptlets
|
||||
- Resolve bug #247302: setroubleshoot's autostart .desktop file fails to start under a KDE session
|
||||
- Resolve bug #376041: Cannot check setroubleshoot service status as non-root
|
||||
- Resolve bug #332281: remove obsolete translation
|
||||
- Resolve bug #344331: No description in gnome-session-properties
|
||||
- Resolve bug #358581: missing libuser-python dependency
|
||||
- Resolve bug #426586: Renaming translation po file from sr@Latn to sr@latin
|
||||
- Resolve bug #427260: German Translation
|
||||
- enhance the sealert man page
|
||||
|
||||
* Fri Jan 4 2008 <jdennis@redhat.com> - 2.0.1-1
|
||||
- make connection error message persist instead of timeout in browser
|
||||
- updated Brazilian Portuguese translation: Igor Pires Soares <igor@fedoraproject.org>
|
||||
@ -209,6 +222,7 @@ rm -rf %{buildroot}
|
||||
- make sure set_filter user validation works and reports error in browser
|
||||
- fix generation of line numbers and host when connected to audispd
|
||||
- add permissive notification, resolves bug #231334: Wording doesn't change for permissive mode
|
||||
- resolves bug #244345: avc path information incomplete
|
||||
- get the uid,gid when a client connects to the server
|
||||
- set_filter now verifies the filter is owned by the user,
|
||||
- resolves bug #288261: setroubleshoot lack of user authentication
|
||||
|
Loading…
Reference in New Issue
Block a user