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:
parent
1ad9577d5d
commit
f044db930e
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user