Date: Tue, 6 Aug 2002 10:53:12 -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: <200208061753.g76HrCgD088109@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
gshapiro 2002/08/06 10:53:12 PDT
Modified files: (Branch: RELENG_4)
etc/periodic/security 100.chksetuid
Log:
MFC: 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}.
Revision Changes Path
1.4 +12 -9 src/etc/periodic/security/100.chksetuid
Revision Changes Path
1.1.2.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?200208061753.g76HrCgD088109>
