Don't do setuid checks on file systems mounted with noexec option.

Reviewed by:	brian, ru
MFC after:	1 week
This commit is contained in:
glebius 2005-01-13 15:07:35 +00:00
parent 1ad9577d5d
commit f044db930e

View File

@ -44,7 +44,7 @@ case "$daily_status_security_chksetuid_enable" in
echo ""
echo 'Checking setuid files and devices:'
# XXX Note that there is the possibility of overrunning the args to ls
MP=`mount -t ufs | grep -v " nosuid" | awk '{ print $3 }' | sort`
MP=`mount -t ufs | egrep -v " no(suid|exec)" | awk '{ print $3 }' | sort`
if [ -n "${MP}" ]
then
set ${MP}