mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-24 02:44:38 +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
44ac4ef672
commit
44436d27fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10755
@ -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