summaryrefslogtreecommitdiff
path: root/src/buildstream/sandbox/_sandboxreapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/sandbox/_sandboxreapi.py')
-rw-r--r--src/buildstream/sandbox/_sandboxreapi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxreapi.py b/src/buildstream/sandbox/_sandboxreapi.py
index 774058d6a..19c599197 100644
--- a/src/buildstream/sandbox/_sandboxreapi.py
+++ b/src/buildstream/sandbox/_sandboxreapi.py
@@ -121,6 +121,9 @@ class SandboxREAPI(Sandbox):
if "unixGID" in supported_properties:
platform.properties.add(name="unixGID", value=str(gid))
+ if flags & SandboxFlags.NETWORK_ENABLED and "network" in supported_properties:
+ platform.properties.add(name="network", value="on")
+
return remote_execution_pb2.Command(
arguments=command,
working_directory=working_directory[1:],