update to latest upstream
This commit is contained in:
parent
096a7f2ce0
commit
abe187903b
@ -1 +1 @@
|
||||
setroubleshoot-2.0.2.tar.gz
|
||||
setroubleshoot-2.0.3.tar.gz
|
||||
|
@ -45,8 +45,6 @@
|
||||
# reload and the try-restart actions are optional.
|
||||
# the init script.
|
||||
|
||||
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin:/usr/sbin
|
||||
|
||||
# Source function library.
|
||||
@ -55,6 +53,31 @@ PATH=/sbin:/bin:/usr/bin:/usr/sbin
|
||||
RETVAL=0
|
||||
prog="setroubleshootd"
|
||||
|
||||
usage(){
|
||||
echo $"Usage: $0 {start|stop|status|restart|try-restart|condrestart|reload|force-reload|cleardb [test][verbose]}"
|
||||
}
|
||||
|
||||
command=$1
|
||||
shift
|
||||
|
||||
[ $command ] || (usage; exit 3)
|
||||
|
||||
# look for extra options
|
||||
while [ $# -gt 0 ]; do
|
||||
arg=$1
|
||||
case "$arg" in
|
||||
test)
|
||||
EXTRAOPTIONS="$EXTRAOPTIONS -c audit.text_protocol_socket_path=/tmp/audispd_events"
|
||||
;;
|
||||
verbose)
|
||||
EXTRAOPTIONS="$EXTRAOPTIONS -V"
|
||||
;;
|
||||
*)
|
||||
echo "unknown arg $arg"
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
rhstatus(){
|
||||
status $prog
|
||||
RETVAL=$?
|
||||
@ -62,7 +85,7 @@ rhstatus(){
|
||||
}
|
||||
|
||||
# Allow status as non-root and also if SELinux is disabled
|
||||
if [ "$1" = status ]; then
|
||||
if [ "$command" = status ]; then
|
||||
rhstatus
|
||||
RETVAL=$?
|
||||
exit $RETVAL
|
||||
@ -134,9 +157,8 @@ cleardb(){
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
|
||||
# See how we were called.
|
||||
case "$1" in
|
||||
case "$command" in
|
||||
start)
|
||||
start
|
||||
RETVAL=$?
|
||||
@ -166,7 +188,7 @@ case "$1" in
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|status|restart|try-restart|condrestart|reload|force-reload|cleardb}"
|
||||
usage
|
||||
RETVAL=3
|
||||
esac
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Summary: Helps troubleshoot SELinux problems
|
||||
Name: setroubleshoot
|
||||
Version: 2.0.2
|
||||
Version: 2.0.3
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
|
Loading…
Reference in New Issue
Block a user