Add add-seccomp combinator

This combinator allows for the use of bubblewrap's `--add-seccomp-fd`
option. Since multiple invocations of this combinator are allowed, this
commit also introduces a new state attribute `seccompPermissions`.

The implementation uses `test -x` against the given argument to decide
whether to use input redirection to a FD or process substitution.
This commit is contained in:
Mathias Sven 2025-10-19 01:22:03 +01:00 • committed by Alex David
commit 23bf74dad6
3 changed files with 50 additions and 0 deletions

View file

@ -44,6 +44,7 @@ let
deferredPermissions = [ ]; # See defer combinator
additionalRuntimeClosures = [ ]; # See bind-nix-store-runtime-closure
dbusPermissions = [ ]; # See dbus combinator
seccompPermissions = [ ]; # See add-seccomp combinator
};
in
lib.pipe initialState (