mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
If no $LOG/setuid.today exists (f.e. first time to run), put
warning and make it, all following commands fails in old case
This commit is contained in:
parent
10fa447e27
commit
66a1f35e31
@ -1,7 +1,7 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# @(#)security 5.3 (Berkeley) 5/28/91
|
||||
# $Id: security,v 1.7 1995/01/14 13:23:50 ats Exp $
|
||||
# $Id: security,v 1.8 1995/05/27 01:37:44 ache Exp $
|
||||
#
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
@ -27,6 +27,10 @@ while test $# -ge 1; do
|
||||
find $mount -xdev \( -perm -u+s -or -perm -g+s \) | sort
|
||||
done | xargs -n 20 ls -lgTd > $TMP
|
||||
|
||||
if [ ! -f $LOG/setuid.today ] ; then
|
||||
echo "no $LOG/setuid.today"
|
||||
cp $TMP $LOG/setuid.today
|
||||
fi
|
||||
if cmp $LOG/setuid.today $TMP >/dev/null; then :; else
|
||||
echo "$host setuid/device diffs:"
|
||||
diff -b $LOG/setuid.today $TMP
|
||||
|
Loading…
Reference in New Issue
Block a user