aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-06 16:37:20 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-06 16:37:20 +0000
commit27feeab6e5eb6e2ff389943899691b18c970b08c (patch)
treeb300e0395e2b6b673900292f7d27dbef9a4c5ad8 /etc/00default
parentOnly print info if we have a controlling terminal. (diff)
downloadsandbox-27feeab6e5eb6e2ff389943899691b18c970b08c.tar.gz
sandbox-27feeab6e5eb6e2ff389943899691b18c970b08c.tar.bz2
sandbox-27feeab6e5eb6e2ff389943899691b18c970b08c.zip
Set default values via a config file. Also support sandbox.d
config directory for package specific configuration files. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'etc/00default')
-rw-r--r--etc/00default29
1 files changed, 29 insertions, 0 deletions
diff --git a/etc/00default b/etc/00default
new file mode 100644
index 0000000..6bae212
--- /dev/null
+++ b/etc/00default
@@ -0,0 +1,29 @@
+# Default configuration for non-set values
+#
+# As stated in sandbox.conf, any value in here do not get used if the variable
+# is already present in the environment. All rules of the ACCESS Section
+# applies here.
+
+# Normally the whole filesystem should be readable
+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"
+
+
+#
+# The following should be moved to respective packages
+#
+
+# This should be handled by gnome-base/gconf
+SANDBOX_WRITE="${HOME}/.gconfd/lock"
+# This should be handled by app-text/scrollkeeper
+SANDBOX_WRITE="/var/log/scrollkeeper.log"
+
+# These should be handled by dev-lang/python or sys-apps/portage
+SANDBOX_PREDICT="/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/:/usr/lib/python2.4/:/usr/lib/python2.5/:/usr/lib/python3.0/"
+# These should be handled by sys-libs/nss-db
+SANDBOX_PREDICT="/var/db/aliases.db:/var/db/netgroup.db:/var/db/netmasks.db:/var/db/ethers.db:/var/db/rpc.db:/var/db/protocols.db:/var/db/services.db:/var/db/networks.db:/var/db/hosts.db:/var/db/group.db:/var/db/passwd.db"
+