From 604fcc64957a466b38ef451c54e7a0005e1cd4a8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 6 Mar 2008 02:33:04 +0000 Subject: Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox for things like writing metadata cache. Thanks to ferringb for the suggestion. svn path=/main/trunk/; revision=9448 --- bin/ebuild.sh | 2 +- bin/portageq | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index b33911d4d..754406b46 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -7,7 +7,7 @@ PORTAGE_BIN_PATH="${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}" PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}" SANDBOX_PREDICT="${SANDBOX_PREDICT}:/proc/self/maps:/dev/console:/dev/random" -export SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_PYM_PATH}:${PORTAGE_DEPCACHEDIR}" +export SANDBOX_PREDICT export SANDBOX_WRITE="${SANDBOX_WRITE}:/dev/shm:/dev/stdout:/dev/stderr:${PORTAGE_TMPDIR}" export SANDBOX_READ="${SANDBOX_READ}:/:/dev/shm:/dev/stdin:${PORTAGE_TMPDIR}" # Don't use sandbox's BASH_ENV for new shells because it does diff --git a/bin/portageq b/bin/portageq index c3fe8b37d..eb0d0ff69 100755 --- a/bin/portageq +++ b/bin/portageq @@ -21,6 +21,10 @@ except KeyboardInterrupt: import os +# This allows portageq to be exempt from sandbox, +# for things like updating metadata cache. +os.environ["SANDBOX_ON"] = "0" + import types #----------------------------------------------------------------------------- -- cgit v1.2.3-1-g7c22