aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-26 03:48:15 +0900
committerOphestra <cat@gensokyo.uk>2025-06-26 03:49:07 +0900
commit9a8a0479084913f1b835e65e5e9f900e4cd9dbf7 (patch)
tree53884ff3ee0e984711f4802320feb5a638bc3fdd /flake.nix
parent863bf69ad32e44d06c654c8cfae875e37b8e5e5a (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.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 3da6136b..717dea23 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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
+ '';
+ };
}
);
};