diff options
author | Paul Moore <paul@paul-moore.com> | 2020-03-22 09:53:48 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-03-22 09:55:55 -0400 |
commit | e2216e7fb089a81387538c0fda237ada0a41a98f (patch) | |
tree | 7298c750331bae8c84a6d6441c1fd7402ab1b0ad /src | |
parent | c61950e1d9725fe2956651d91b3b67709006517f (diff) | |
download | libseccomp-e2216e7fb089a81387538c0fda237ada0a41a98f.tar.gz |
arch: add missing parisc64 support to arch-syscall-validate
Commit c61950e1d972 ("arch: add missing parisc and parisc64 support
to arch-syscall-validate") forgot to add parisc64 support, this patch
fixes that.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/arch-syscall-validate | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arch-syscall-validate b/src/arch-syscall-validate index 901dc26..6852782 100755 --- a/src/arch-syscall-validate +++ b/src/arch-syscall-validate @@ -449,6 +449,31 @@ function dump_lib_parisc() { } # +# Dump the parisc64 system syscall table +# +# Arguments: +# 1 path to the kernel source +# +# Dump the architecture's syscall table to stdout. +# +function dump_sys_parisc64() { + cat $1/arch/parisc/kernel/syscalls/syscall.tbl | \ + grep -v "^#" | \ + sed -n "/[0-9]\+[ \t]\+\(common\|64\)/p" | \ + awk '{ print $3","$1 }' | \ + sort +} + +# +# Dump the parisc64 library syscall table +# +# Dump the library's syscall table to stdout. +# +function dump_lib_parisc64() { + dump_lib_arch parisc64 | mangle_lib_syscall parisc64 +} + +# # Dump the ppc system syscall table # # Arguments: |