summaryrefslogtreecommitdiff
path: root/buildstream/sandbox/sandbox.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-02-07 16:36:25 +0100
committerJürg Billeter <j@bitron.ch>2018-02-07 16:36:25 +0100
commit3b284b672017b7be09544de47321a3f8e63fe272 (patch)
tree80f91ae31529842184c3bec834d35e0cf1659e85 /buildstream/sandbox/sandbox.py
parent087f7c28cdb4c5cf04f6697283dc2580d77b40f8 (diff)
downloadbuildstream-juerg/dbus.tar.gz
Inherit user id and group id for bst shelljuerg/dbus
This allows D-Bus access. Fixes #227
Diffstat (limited to 'buildstream/sandbox/sandbox.py')
-rw-r--r--buildstream/sandbox/sandbox.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildstream/sandbox/sandbox.py b/buildstream/sandbox/sandbox.py
index 00245309a..f59527cf4 100644
--- a/buildstream/sandbox/sandbox.py
+++ b/buildstream/sandbox/sandbox.py
@@ -59,6 +59,15 @@ class SandboxFlags():
the terminal entirely.
"""
+ INHERIT_UID = 0x08
+ """Whether to use the user id and group id from the host environment
+
+ This determines if processes in the sandbox should run with the
+ same user id and group id as BuildStream itself. By default,
+ processes run with user id and group id 0, protected by a user
+ namespace where available.
+ """
+
class Sandbox():
"""Sandbox()