--- 100.chksetuid-orig Mon Mar 28 07:39:38 2005 +++ 100.chksetuid Mon Mar 28 07:52:51 2005 @@ -44,7 +44,16 @@ echo "" echo 'Checking setuid files and devices:' # XXX Note that there is the possibility of overrunning the args to ls - MP=`mount -t ufs | egrep -v " no(suid|exec)" | awk '{ print $3 }' | sort` + excludes=" " + case X"$daily_status_security_chksetuid_prunemounts" in + X) ;; + *) for path in $daily_status_security_chksetuid_prunemounts + do + excludes="$excludes|$path" + done;; + esac + + MP=`mount -t ufs | egrep -v " no(suid|exec)" | awk '{ print $3 }' | egrep -v "($excludes)" | sort` if [ -n "${MP}" ] then set ${MP}