diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-26 03:48:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-26 03:49:07 +0900 |
| commit | 9a8a0479084913f1b835e65e5e9f900e4cd9dbf7 (patch) | |
| tree | 53884ff3ee0e984711f4802320feb5a638bc3fdd /flake.nix | |
| parent | 863bf69ad32e44d06c654c8cfae875e37b8e5e5a (diff) | |
sandbox/seccomp: syscall name lookup table
The script is from Go source of same name. The result is checked against libseccomp.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -184,6 +184,16 @@ exec cat ${docText} > options.md ''; }; + + generateSyscallTable = pkgs.mkShell { + # this should be made cross-platform via nix + shellHook = '' + exec ${pkgs.perl}/bin/perl \ + sandbox/seccomp/mksysnum_linux.pl \ + ${pkgs.linuxHeaders}/include/asm/unistd_64.h > \ + sandbox/seccomp/syscall_linux_amd64.go + ''; + }; } ); }; |
