modules/programs: reformatting
This commit is contained in:
@@ -353,8 +353,8 @@ let
|
|||||||
message = "program ${name} specified no `sandbox.method`; please configure a method, or set sandbox.enable = false.";
|
message = "program ${name} specified no `sandbox.method`; please configure a method, or set sandbox.enable = false.";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = (p.net == "clearnet") || p.sandbox.method != null;
|
assertion = p.net == "clearnet" || p.sandbox.method != null;
|
||||||
message = ''program "${name}" requests net "${p.net}", which requires sandboxing, but sandboxing was disabled'';
|
message = ''program "${name}" requests net "${p.net}", which requires sandboxing, but sandboxing wasn't configured'';
|
||||||
}
|
}
|
||||||
] ++ builtins.map (sug: {
|
] ++ builtins.map (sug: {
|
||||||
assertion = cfg ? "${sug}";
|
assertion = cfg ? "${sug}";
|
||||||
@@ -470,7 +470,7 @@ in
|
|||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
whether to require that every `sane.program` explicitly specify its sandbox settings
|
whether to require that every `sane.program` explicitly specify its sandbox settings.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -136,7 +136,8 @@ let
|
|||||||
# ensuring that every binary has in fact been wrapped.
|
# ensuring that every binary has in fact been wrapped.
|
||||||
_numExec=0
|
_numExec=0
|
||||||
for b in ${packageWrapped}/bin/*; do
|
for b in ${packageWrapped}/bin/*; do
|
||||||
PATH="$PATH:${packageWrapped}/bin:${sane-sandboxed}/bin" \
|
echo "checking if $b is sandboxed"
|
||||||
|
PATH="${packageWrapped}/bin:${sane-sandboxed}/bin:$PATH" \
|
||||||
SANE_SANDBOX_DISABLE=1 \
|
SANE_SANDBOX_DISABLE=1 \
|
||||||
"$b" --sane-sandbox-replace-cli echo "printing for test" \
|
"$b" --sane-sandbox-replace-cli echo "printing for test" \
|
||||||
| grep "printing for test"
|
| grep "printing for test"
|
||||||
|
Reference in New Issue
Block a user