procd: seccomp/jail: Fix build error on arm with glibc
authorDaniel Golle <daniel@makrotopia.org>
Mon, 31 Jan 2022 00:07:32 +0000 (00:07 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 31 Jan 2022 00:10:42 +0000 (00:10 +0000)
commit5d110c016184fc2f072a41b77fce322b439bc225
tree0b0e1fb80a754cf35f32604fd08cf7b553460b8b
parent5e6867fd542b04c0b8c8e7b8360f1cac03a77b99
procd: seccomp/jail: Fix build error on arm with glibc

From: Peter Lundkvist <peter.lundkvist@gmail.com>

This fixes the make_syscall_h.sh script to recognize both
__NR_Linux, used by mips, and __NR_SYSCALL_BASE and
__ARM_NR_BASE used by arm.

Run-tested on arm (ipq806x) and mips (ath79), both with glibc.
Compile-tested and checked resulting syscall_names.h file wuth
glibc: aarch64, powerpc, x86_64, i486
musl: arm, mips

Fixes: FS#4194, FS#4195
Signed-off-by: Peter Lundkvist <peter.lundkvist@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/system/procd/Makefile