summaryrefslogtreecommitdiff
path: root/_quota_selfcheck.lua
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-05 11:13:09 -0700
committert <t@tjp.lol>2026-12-05 11:13:44 -0700
commit760cb2a9045e0c1cde276a6378841217e655fde3 (patch)
tree7afc2e9874ad47122ed09850cb0ce108dc79faae /_quota_selfcheck.lua
parent0b5892bc31fb576099421ecddfbdc7a7b243d02d (diff)
Broaden platform support to Unix beyond macOS
Replace macOS-only underpinnings with portable Unix equivalents so the provider runs on macOS, Linux, and FreeBSD: - Replace /usr/bin/nc -U with an embedded panto lua + luv stdio-to-socket relay everywhere. - Conditionalize /usr/bin/codesign to macOS; validate binary ownership and permissions on other Unix platforms. - Forward D-Bus/XDG keyring session variables on non-macOS while keeping API keys stripped. - Use uv.os_tmpdir() (with /tmp fallback for Unix socket sun_path limits) instead of hardcoded /tmp and /private/tmp. - Drop --sandbox from agy invocations to match Panto's permissions model and avoid container/Linuxulator sandbox breakage. - Update check.lua for non-macOS runners (unshare / direct) and broaden supported_platforms to unix.
Diffstat (limited to '_quota_selfcheck.lua')
-rw-r--r--_quota_selfcheck.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/_quota_selfcheck.lua b/_quota_selfcheck.lua
index 488f1d2..9e03f2a 100644
--- a/_quota_selfcheck.lua
+++ b/_quota_selfcheck.lua
@@ -40,7 +40,7 @@ local advance = 0
uv.hrtime = function() return hrtime() + advance end
uv.spawn = function(bin, opts, callback)
assert(bin == '/fake-agy' and opts.cwd == profile and opts.env == env and opts.detached)
- assert(table.concat(opts.args, '|') == '--gemini_dir|/fake-profile|--sandbox|-p|/usage')
+ assert(table.concat(opts.args, '|') == '--gemini_dir|/fake-profile|-p|/usage')
assert(opts.stdio[1] == nil and opts.stdio[2] and opts.stdio[3] == nil)
spawns = spawns + 1
opts.cwd = '/'