svn commit: r338226 - user/cperciva/portsnap-build

Xin LI delphij at FreeBSD.org
Thu Aug 23 02:17:37 UTC 2018


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}
 


More information about the svn-src-user mailing list