Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2014 00:42:57 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r266823 - user/nwhitehorn/condorports
Message-ID:  <201405290042.s4T0gvKM065787@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Thu May 29 00:42:57 2014
New Revision: 266823
URL: http://svnweb.freebsd.org/changeset/base/266823

Log:
  Security enhancements I had as local diffs.

Modified:
  user/nwhitehorn/condorports/prepbuildjail

Modified: user/nwhitehorn/condorports/prepbuildjail
==============================================================================
--- user/nwhitehorn/condorports/prepbuildjail	Wed May 28 23:01:20 2014	(r266822)
+++ user/nwhitehorn/condorports/prepbuildjail	Thu May 29 00:42:57 2014	(r266823)
@@ -11,7 +11,7 @@ case $release in
 	*[^a-zA-Z0-9]* ) echo "Non-alphanumeric release $release"; exit 1
 esac
 case $ports in
-	*[^a-zA-Z0-9/-]* ) echo "Non-alphanumeric ports $ports"; exit 1
+	*[^a-zA-Z0-9]* ) echo "Non-alphanumeric ports $ports"; exit 1
 esac
 if [ -z "$slot" -o -z "$release" ]; then
 	echo "Zero-length slot or release"
@@ -32,8 +32,6 @@ cleanup() {
 set -e
 trap cleanup EXIT
 
-#TODO: localhost networking
-
 set -o noclobber
 echo > /scratch/$slot.lock
 
@@ -53,10 +51,10 @@ mkdir -p /scratch/$slot
 mount -t tmpfs tmpfs /scratch/$slot
 
 #cp -a /scratch/$release/ /scratch/$slot
-tar -C /scratch/$slot -xf /scratch/$release.tar
-if [ -n "$ports" ]; then
-	mkdir -p /scratch/$slot/$ports
-	echo "$ports /scratch/$slot/$ports nullfs ro 0 0" >> /scratch/$slot.fstab
+tar -C /scratch/$slot -xf /buildshare/releases/$release.tar
+if [ -n "/buildshare/ports/$ports" ]; then
+	mkdir -p /scratch/$slot/buildshare/$ports
+	echo "/buildshare/ports/$ports /scratch/$slot/buildshare/ports/$ports nullfs ro 0 0" >> /scratch/$slot.fstab
 fi
 
 jail -f /scratch/$slot.conf -c $slot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405290042.s4T0gvKM065787>