commit 99763d520b5202651d3373549dbe8156db4a7ee6
parent 80a63fd4b1ab2004f19b7f70848d788cc249d72e
Author: Joris Vink <joris@coders.se>
Date: Wed, 23 Oct 2019 13:50:51 +0200
make sure we can run this outside the tree
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/misc/linux-platform.sh b/misc/linux-platform.sh
@@ -9,15 +9,16 @@
# Not the hottest stuff to be honest..
PLATFORM=$(uname -m)
+BASE=$(dirname $0)
case "$PLATFORM" in
x86_64*)
seccomp_audit_arch=AUDIT_ARCH_X86_64
- syscall_file=linux/syscall_64.tbl
+ syscall_file=$BASE/linux/syscall_64.tbl
;;
i*86*)
seccomp_audit_arch=AUDIT_ARCH_I386
- syscall_file=linux/syscall_32.tbl
+ syscall_file=$BASE/linux/syscall_32.tbl
;;
arm*)
seccomp_audit_arch=AUDIT_ARCH_ARM