Skip to content

Commit 19facfd

Browse files
committed
fix: allow file-map-executable for vllm-metal cache in macOS sandbox
The pre-compiled paged_ops .so extension needs to be dlopen()'d at runtime, which requires mmap with execute permissions. Add a targeted file-map-executable allowance for ~/.cache/vllm-metal where the pre-built extension is cached.
1 parent ad2faee commit 19facfd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/sandbox/sandbox_darwin.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ const ConfigurationPython = `(version 1)
8888
(subpath "[HOMEDIR]/.cache/vllm")
8989
(subpath "[HOMEDIR]/.cache/vllm-metal")
9090
(subpath "/private/tmp"))
91+
;;; Allow loading pre-compiled Metal kernel extensions from the vllm-metal cache.
92+
(allow file-map-executable
93+
(subpath "[HOMEDIR]/.cache/vllm-metal"))
9194
`
9295

9396
// ConfigurationLlamaCpp is the sandbox configuration for llama.cpp processes.

0 commit comments

Comments
 (0)