Date: Thu, 23 Aug 2018 02:17:36 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r338226 - user/cperciva/portsnap-build Message-ID: <201808230217.w7N2Hami074518@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Thu Aug 23 02:17:36 2018 New Revision: 338226 URL: https://svnweb.freebsd.org/changeset/base/338226 Log: Use noexec when mounting memory disk. Modified: user/cperciva/portsnap-build/build.sh Modified: user/cperciva/portsnap-build/build.sh ============================================================================== --- user/cperciva/portsnap-build/build.sh Thu Aug 23 02:15:45 2018 (r338225) +++ user/cperciva/portsnap-build/build.sh Thu Aug 23 02:17:36 2018 (r338226) @@ -33,7 +33,7 @@ fi # Create a memory disk for holding the snapshot files. SNAPMD=`mdconfig -a -t swap -s ${SNAPMDSIZE} -n` newfs -O 1 -n /dev/md${SNAPMD} >/dev/null -mount -onoatime,async /dev/md${SNAPMD} ${SNAPDIR} +mount -o noatime,noexec,async /dev/md${SNAPMD} ${SNAPDIR} # Build a snapshot sh -e s/treesnap-build.sh head@${NEWREV} "${DESCRIBES_BUILD}" \ @@ -86,7 +86,7 @@ rm ${SIGDIR}/*.ssl # Unmount and delete the snapshot disk while ! umount /dev/md${SNAPMD}; do - sleep 1 + sleep 1; done mdconfig -d -u ${SNAPMD}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808230217.w7N2Hami074518>