Run fmt
This commit is contained in:
parent
9857627b48
commit
5c3e611da7
1 changed files with 21 additions and 19 deletions
|
|
@ -26,23 +26,25 @@ in
|
|||
|
||||
See BWRAP(1) for more information.
|
||||
'';
|
||||
impl = path: compose [
|
||||
(helpers.pushState "seccompPermissions" (escape path))
|
||||
(include-once "seccomp" (
|
||||
defer (
|
||||
state:
|
||||
add-runtime ''
|
||||
declare -a SECCOMP_FILTERS=(${toString (state.seccompPermissions)})
|
||||
for FILTER in "''${SECCOMP_FILTERS[@]}"; do
|
||||
if [[ -x "$FILTER" ]]; then
|
||||
exec {FILTER_FD}< <("$FILTER")
|
||||
else
|
||||
exec {FILTER_FD}<"$FILTER"
|
||||
fi
|
||||
RUNTIME_ARGS+=(--add-seccomp-fd "$FILTER_FD")
|
||||
done
|
||||
'' state
|
||||
)
|
||||
))
|
||||
];
|
||||
impl =
|
||||
path:
|
||||
compose [
|
||||
(helpers.pushState "seccompPermissions" (escape path))
|
||||
(include-once "seccomp" (
|
||||
defer (
|
||||
state:
|
||||
add-runtime ''
|
||||
declare -a SECCOMP_FILTERS=(${toString (state.seccompPermissions)})
|
||||
for FILTER in "''${SECCOMP_FILTERS[@]}"; do
|
||||
if [[ -x "$FILTER" ]]; then
|
||||
exec {FILTER_FD}< <("$FILTER")
|
||||
else
|
||||
exec {FILTER_FD}<"$FILTER"
|
||||
fi
|
||||
RUNTIME_ARGS+=(--add-seccomp-fd "$FILTER_FD")
|
||||
done
|
||||
'' state
|
||||
)
|
||||
))
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue