diff --git a/container/seccomp/mksysnum_linux.pl b/container/seccomp/mksysnum_linux.pl index 50b88b6..2dbd12f 100755 --- a/container/seccomp/mksysnum_linux.pl +++ b/container/seccomp/mksysnum_linux.pl @@ -4,8 +4,14 @@ # license that can be found in the LICENSE file. use strict; +use POSIX (); my $command = "mksysnum_linux.pl ". join(' ', @ARGV); +my $uname_arch = (POSIX::uname)[4]; +my %syscall_cutoff_arch = ( + "x86_64" => 302, + "aarch64" => 281, +); print < 302){ # not wired in Go standard library + if($num > $syscall_cutoff_arch{$uname_arch}){ # not wired in Go standard library if($state < 0){ print " \"$name\": SYS_$name_upper,\n"; }