bunpen: plumb pasta related arguments into make-sandboxed

for testing only: these options don't yet have the intended effect
This commit is contained in:
2024-09-19 23:54:43 +00:00
parent 2a4043523d
commit 8979ff0eec

View File

@@ -34,6 +34,7 @@ let
bunpenGenerators = {
autodetectCliPaths = style: [ "--bunpen-autodetect" style ];
capability = cap: [ "--bunpen-cap" cap ];
dns = addr: [ "--bunpen-dns" addr ];
keepIpc = [ "--bunpen-keep-ipc" ];
keepPids = [ "--bunpen-keep-pid" ];
method = m: assert m == "bunpen";
@@ -53,7 +54,8 @@ let
"stderr"
# bwrap also does some stuff for /dev/{console,core,ptmx,pts,shm}, i don't need those (yet?)
]);
netDev = n: assert n == "all"; [ "--bunpen-keep-net" ];
netDev = n: if n == "all" then [ "--bunpen-keep-net" ] else [ "--bunpen-net-dev" n ];
netGateway = netGateway: [ "--bunpen-net-gateway" netGateway ];
path = p: [ "--bunpen-path" p ];
path-home = p: [ "--bunpen-home-path" p ];
path-run = p: [ "--bunpen-run-path" p ];