about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-07-03 10:53:38 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-07-03 10:53:38 +0300
commit257e0a3f5fcff3b138ffbc42efd8ac27c95763ba (patch)
treec33069a11789d9a36c58c3ee4e0467340247f393
parent65cd8896f0696cb10b063759403ab5ef14339004 (diff)
downloadfungus-launcher-257e0a3f5fcff3b138ffbc42efd8ac27c95763ba.tar.gz
fungus-launcher-257e0a3f5fcff3b138ffbc42efd8ac27c95763ba.tar.xz
specifically blacklist ssh-agent.socket from XDG_RUNTIME_DIR
-rw-r--r--fungus/run_manager.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/fungus/run_manager.py b/fungus/run_manager.py
index 73ca9d1..a9dee30 100644
--- a/fungus/run_manager.py
+++ b/fungus/run_manager.py
@@ -306,6 +306,11 @@ class FungusRun:
         xdg_runtime = os.environ.get("XDG_RUNTIME_DIR", "")
         if xdg_runtime:
             bwrap_args.extend(["--bind", xdg_runtime, xdg_runtime])
+            # Mask the SSH agent socket so the sandbox cannot reach it
+            bwrap_args.extend([
+                "--bind", "/dev/null",
+                os.path.join(xdg_runtime, "ssh-agent.socket"),
+            ])
 
         # ── System writable / special mounts ────────────────────────────
         bwrap_args.extend(self._flatten_bwrap_args(self.SYSTEM_BINDS))