From 5a170d5c5bacb42b988ef7b49074403b2e985d2e Mon Sep 17 00:00:00 2001 From: Tristan van Berkom Date: Wed, 5 Oct 2022 13:29:21 -0400 Subject: [PATCH] _sandboxbuildboxrun.py: Expose the casd socket interface in the sandbox. This allows REAPI aware tools running in the sandbox to access /tmp/casd.sock and speak to CAS. --- src/buildstream/sandbox/_sandboxbuildboxrun.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/buildstream/sandbox/_sandboxbuildboxrun.py b/src/buildstream/sandbox/_sandboxbuildboxrun.py index d6eb2dc2d..4bfe37a59 100644 --- a/src/buildstream/sandbox/_sandboxbuildboxrun.py +++ b/src/buildstream/sandbox/_sandboxbuildboxrun.py @@ -133,6 +133,9 @@ def _execute_action(self, action, flags): else: stdin = subprocess.DEVNULL + # Expose the casd socket in the sandbox at /tmp/casd.sock + buildbox_command.append("--bind-mount={}:/tmp/casd.sock".format(casd_process_manager._socket_path)) + self._run_buildbox( buildbox_command, stdin,