diff --git a/src/buildstream/sandbox/_sandboxbuildboxrun.py b/src/buildstream/sandbox/_sandboxbuildboxrun.py index d6eb2dc2d..b84283e41 100644 --- a/src/buildstream/sandbox/_sandboxbuildboxrun.py +++ b/src/buildstream/sandbox/_sandboxbuildboxrun.py @@ -133,6 +133,15 @@ def _execute_action(self, action, flags): else: stdin = subprocess.DEVNULL + if "casd-socket" in self.__config: + # Expose the casd socket in the sandbox + buildbox_command.append( + "--bind-mount={}:{".format( + casd_process_manager._socket_path, + self.__config["casd-socket"], + ) + ) + self._run_buildbox( buildbox_command, stdin,