aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-24 08:50:54 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-24 08:55:38 -0400
commitdc0b6bccd6b7edec5fb451d81884ae7b83d0098a (patch)
tree543c65b9c73718dd89f2814c9043143b6b85a66e /etc
parentlibsandbox: use PTRACE_SETOPTIONS only when defined (diff)
downloadsandbox-dc0b6bccd6b7edec5fb451d81884ae7b83d0098a.tar.gz
sandbox-dc0b6bccd6b7edec5fb451d81884ae7b83d0098a.tar.bz2
sandbox-dc0b6bccd6b7edec5fb451d81884ae7b83d0098a.zip
00default: set default paths based on @prefix@
Rather than hardcode /usr, assume that the prefix sandbox is configured with is the same prefix that other packages in the system will be configured with. This isn't entirely correct, but covers all of the common and realistic use cases. URL: http://bugs.gentoo.org/275064 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/sandbox.d/00default.in (renamed from etc/sandbox.d/00default)2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/sandbox.d/00default b/etc/sandbox.d/00default.in
index a419480..264fdf3 100644
--- a/etc/sandbox.d/00default
+++ b/etc/sandbox.d/00default.in
@@ -14,7 +14,7 @@ SANDBOX_READ="/"
# Finally add current directory if interactive
SANDBOX_WRITE="${SANDBOX_WORKDIR}"
# Needed for configure tests
-SANDBOX_WRITE="/usr/tmp/conftest:/usr/lib/conftest:/usr/lib32/conftest:/usr/lib64/conftest:/usr/tmp/cf:/usr/lib/cf:/usr/lib32/cf:/usr/lib64/cf"
+SANDBOX_WRITE="@prefix@/tmp/conftest:@prefix@/lib/conftest:@prefix@/lib32/conftest:@prefix@/lib64/conftest:@prefix@/tmp/cf:@prefix@/lib/cf:@prefix@/lib32/cf:@prefix@/lib64/cf"
# Usually writes in /home should not cause violations
SANDBOX_PREDICT="${HOME}"