Browse Source

Made the search a litte less naieve...

to prevent false positives.
pull/7/head
Egon Rijpkema 4 years ago
parent
commit
1ead4c42d1
  1. 2
      roles/touchalert/files/touch_alert

2
roles/touchalert/files/touch_alert

@ -8,7 +8,7 @@ if [ -e "$flagfile" ] && [[ $(find "$flagfile" -mmin -15) ]]; then @@ -8,7 +8,7 @@ if [ -e "$flagfile" ] && [[ $(find "$flagfile" -mmin -15) ]]; then
exit 0
fi
process=$(ps aux | grep find | grep touch)
process=$(ps aux | grep "\-exec touch " | grep find)
if [ "$process" != "" ] ; then
echo "A user has been caught chaining find and touch."

Loading…
Cancel
Save