Date: Sat, 3 Aug 2002 15:33:34 -0700 (PDT) From: Gregory Neil Shapiro <gshapiro@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/etc/periodic/security 100.chksetuid Message-ID: <200208032233.g73MXYwx066055@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
gshapiro 2002/08/03 15:33:34 PDT
Modified files:
etc/periodic/security 100.chksetuid
Log:
If all file systems are marked nosuid, the line:
MP=`mount -t ufs | grep -v " nosuid" | awk '{ print $3 }' | sort`
sets ${MP} to an empty string so the next line:
set ${MP}
actually just dumps all of the shells variables to stdout (and therefore
the security report). Fixed by surrounding the code which goes through the
mounts with a test for an empty string before using ${MP}.
Reviewed by: brian
MFC after: 3 days
Revision Changes Path
1.4 +12 -9 src/etc/periodic/security/100.chksetuid
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208032233.g73MXYwx066055>
