mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
17100a2a55
commit
aed9792fae
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue