1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/system/minijail
Alyssa Ross 139a15ea58 minijail: build and install constants.json
This is a syscall table used for compiling Minijail policy files to
BPF.  The compiler is available in the minijail-tools package.  The
file is generated by compiling and running a small program named
dump_constants.

When cross-compiling, we have to get the syscall table for the host
platform.  To do this, dump_constants is run under QEMU user emulation
for the appropriate platform.  Google takes the same approach in their
minijail packages for ChromiumOS[1].

[1]: 729bd4269a/chromeos-base/minijail/minijail-9999.ebuild (49)
2020-04-01 13:44:28 +00:00
..
default.nix minijail: build and install constants.json 2020-04-01 13:44:28 +00:00
tools.nix minijail-tools: init at 14 2020-04-01 13:44:28 +00:00