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:
@@ -34,6 +34,7 @@ let
|
|||||||
bunpenGenerators = {
|
bunpenGenerators = {
|
||||||
autodetectCliPaths = style: [ "--bunpen-autodetect" style ];
|
autodetectCliPaths = style: [ "--bunpen-autodetect" style ];
|
||||||
capability = cap: [ "--bunpen-cap" cap ];
|
capability = cap: [ "--bunpen-cap" cap ];
|
||||||
|
dns = addr: [ "--bunpen-dns" addr ];
|
||||||
keepIpc = [ "--bunpen-keep-ipc" ];
|
keepIpc = [ "--bunpen-keep-ipc" ];
|
||||||
keepPids = [ "--bunpen-keep-pid" ];
|
keepPids = [ "--bunpen-keep-pid" ];
|
||||||
method = m: assert m == "bunpen";
|
method = m: assert m == "bunpen";
|
||||||
@@ -53,7 +54,8 @@ let
|
|||||||
"stderr"
|
"stderr"
|
||||||
# bwrap also does some stuff for /dev/{console,core,ptmx,pts,shm}, i don't need those (yet?)
|
# 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 = p: [ "--bunpen-path" p ];
|
||||||
path-home = p: [ "--bunpen-home-path" p ];
|
path-home = p: [ "--bunpen-home-path" p ];
|
||||||
path-run = p: [ "--bunpen-run-path" p ];
|
path-run = p: [ "--bunpen-run-path" p ];
|
||||||
|
Reference in New Issue
Block a user