diff --git a/buildstream/element.py b/buildstream/element.py
index e0d8ce77df8eb2a0e022e50d6d77b775050c55ab..57907861c04c1a4a247a2d6f353f9f73d6b15692 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -2157,6 +2157,7 @@ class Element(Plugin):
 
             sandbox = SandboxRemote(context, project,
                                     directory,
+                                    plugin=self,
                                     stdout=stdout,
                                     stderr=stderr,
                                     config=config,
@@ -2175,6 +2176,7 @@ class Element(Plugin):
 
             sandbox = platform.create_sandbox(context, project,
                                               directory,
+                                              plugin=self,
                                               stdout=stdout,
                                               stderr=stderr,
                                               config=config,