From a4d0d788d68bc33755dbe0f728268aa2700f1466 Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 12 Aug 2002 16:33:11 +0000 Subject: Make sure that /var/games exists in the sandbox, and has the correct permissions. --- mk/bulk/mksandbox | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox index 88c9847d9f9..56d377e18ed 100755 --- a/mk/bulk/mksandbox +++ b/mk/bulk/mksandbox @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mksandbox,v 1.6 2002/08/12 15:19:49 seb Exp $ +# $NetBSD: mksandbox,v 1.7 2002/08/12 16:33:11 agc Exp $ # # # Copyright (c) 2002 Alistair G. Crooks. All rights reserved. @@ -47,6 +47,7 @@ case "$opsys" in Darwin) bmakeprog=bmake chmodprog=/bin/chmod + chownprog=/usr/sbin/chown cpprog=/bin/cp gtarprog=/usr/bin/gnutar mkdirprog="/bin/mkdir -p" @@ -57,6 +58,7 @@ Darwin) Linux) bmakeprog=bmake chmodprog=/bin/chmod + chownprog=/bin/chown cpprog=/bin/cp gtarprog=/bin/tar mkdirprog="/bin/mkdir -p" @@ -67,6 +69,7 @@ Linux) NetBSD) bmakeprog=make chmodprog=/bin/chmod + chownprog=/usr/sbin/chown cpprog=/bin/cp gtarprog=/usr/bin/tar mkdirprog="/bin/mkdir -p" @@ -77,6 +80,7 @@ NetBSD) SunOS) bmakeprog=bmake chmodprog=/usr/bin/chmod + chownprog=/usr/bin/chown cpprog=/usr/bin/cp gtarprog="" mkdirprog="/usr/bin/mkdir -p" @@ -88,6 +92,7 @@ SunOS) echo "Unknown Operating System ($opsys) - good luck" bmakeprog=bmake chmodprog=chmod + chownprog=chown cpprog=cp gtarprog="tar" mkdirprog="mkdir -p" @@ -175,6 +180,11 @@ echo "Making /tmp in $sandbox" $mkdirprog $sandbox/tmp $sandbox/var/tmp $chmodprog 1777 $sandbox/tmp $sandbox/var/tmp +echo "Making /var/games in $sandbox" +$mkdirprog $sandbox/var/games +$chownprog games:games $sandbox/var/games +$chmodprog 2775 $sandbox/var/games + echo "Mount $src from $sandbox" $mkdirprog $sandbox/usr/src $mountprog -r -t null $src $sandbox/usr/src -- cgit v1.2.3