mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
Reworked the search for suid sgid programs to be more like the original and
only to run find on local file systems. It now works and no longer gets the error from sort
This commit is contained in:
parent
c4f82d1e70
commit
9cbca60857
18
etc/security
18
etc/security
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# @(#)security 5.3 (Berkeley) 5/28/91
|
# @(#)security 5.3 (Berkeley) 5/28/91
|
||||||
# $Id$
|
# $Id: security,v 1.3 1993/09/06 23:12:04 rgrimes Exp $
|
||||||
#
|
#
|
||||||
PATH=/sbin:/bin:/usr/bin
|
PATH=/sbin:/bin:/usr/bin
|
||||||
|
|
||||||
@ -19,15 +19,13 @@ echo "checking setuid files and devices:"
|
|||||||
# note that one of the original problem, the possibility of overrunning
|
# note that one of the original problem, the possibility of overrunning
|
||||||
# the args to ls, is still here...
|
# the args to ls, is still here...
|
||||||
#
|
#
|
||||||
# add this after -a when find supports isofs, and you don't want to check
|
MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $3 }'`
|
||||||
# your cd roms
|
set $MP
|
||||||
# \( ! \( -fstype isofs \) -o -prune \) \
|
ls -lgT `while test $# -ge 1; do
|
||||||
# do skip checking cdroms
|
mount=$1
|
||||||
|
shift
|
||||||
find / -fstype local -a \
|
find $mount -xdev -perm -u+s -or -perm -g+s | sort
|
||||||
\( -perm -u+s -or -perm -g+s \) | \
|
done` > $TMP
|
||||||
sed -e "/\/dev\//d" -e "s;//;/;g" | sort | xargs -n 20 ls -lgT > $TMP
|
|
||||||
|
|
||||||
|
|
||||||
#MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'`
|
#MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'`
|
||||||
#set $MP
|
#set $MP
|
||||||
|
Loading…
Reference in New Issue
Block a user