1 |
Author: vapier |
2 |
Date: 2009-06-03 02:50:29 +0000 (Wed, 03 Jun 2009) |
3 |
New Revision: 13627 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/ebuild.sh |
7 |
Log: |
8 |
drop sandbox settings that sandbox itself takes care of #258684 |
9 |
|
10 |
Modified: main/trunk/bin/ebuild.sh |
11 |
=================================================================== |
12 |
--- main/trunk/bin/ebuild.sh 2009-05-31 06:16:58 UTC (rev 13626) |
13 |
+++ main/trunk/bin/ebuild.sh 2009-06-03 02:50:29 UTC (rev 13627) |
14 |
@@ -6,9 +6,6 @@ |
15 |
PORTAGE_BIN_PATH="${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}" |
16 |
PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}" |
17 |
|
18 |
-export SANDBOX_PREDICT="${SANDBOX_PREDICT:+${SANDBOX_PREDICT}:}/proc/self/maps:/dev/console:/dev/random" |
19 |
-export SANDBOX_WRITE="${SANDBOX_WRITE:+${SANDBOX_WRITE}:}/dev/shm:/dev/stdout:/dev/stderr:${PORTAGE_TMPDIR}" |
20 |
-export SANDBOX_READ="${SANDBOX_READ:+${SANDBOX_READ}:}/:/dev/shm:/dev/stdin:${PORTAGE_TMPDIR}" |
21 |
# Don't use sandbox's BASH_ENV for new shells because it does |
22 |
# 'source /etc/profile' which can interfere with the build |
23 |
# environment by modifying our PATH. |
24 |
@@ -21,10 +18,6 @@ |
25 |
unset PORTAGE_ROOTPATH |
26 |
fi |
27 |
|
28 |
-if [ ! -z "${PORTAGE_GPG_DIR}" ]; then |
29 |
- SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_GPG_DIR}" |
30 |
-fi |
31 |
- |
32 |
# These two functions wrap sourcing and calling respectively. At present they |
33 |
# perform a qa check to make sure eclasses and ebuilds and profiles don't mess |
34 |
# with shell opts (shopts). Ebuilds/eclasses changing shopts should reset them |
35 |
@@ -105,6 +98,10 @@ |
36 |
adddeny() { _sb_append_var DENY "$@" ; } |
37 |
addpredict() { _sb_append_var PREDICT "$@" ; } |
38 |
|
39 |
+addwrite "${PORTAGE_TMPDIR}" |
40 |
+addread "/:${PORTAGE_TMPDIR}" |
41 |
+[[ -n ${PORTAGE_GPG_DIR} ]] && addpredict "${PORTAGE_GPG_DIR}" |
42 |
+ |
43 |
lchown() { |
44 |
chown -h "$@" |
45 |
} |