diff options
author | Haibo Xu <haibo.xu@arm.com> | 2019-12-06 06:29:24 +0000 |
---|---|---|
committer | Haibo Xu <haibo.xu@arm.com> | 2020-01-17 07:39:57 +0000 |
commit | 82ae857877fdf3492f40bca87657a07892c3f59b (patch) | |
tree | 49c4a304a5a27b7d4537afe28af1fd15cca5b882 /test/syscalls/linux/seccomp.cc | |
parent | 574e988f2bc6060078a17f37a377441703c52a22 (diff) |
Enable build of test/syscall tests on arm64.
Signed-off-by: Haibo Xu <haibo.xu@arm.com>
Change-Id: I277d6c708bbf5c3edd7c3568941cfd01dc122e17
Diffstat (limited to 'test/syscalls/linux/seccomp.cc')
-rw-r--r-- | test/syscalls/linux/seccomp.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syscalls/linux/seccomp.cc b/test/syscalls/linux/seccomp.cc index 7e41fe7d8..6d7e543b9 100644 --- a/test/syscalls/linux/seccomp.cc +++ b/test/syscalls/linux/seccomp.cc @@ -49,7 +49,12 @@ namespace testing { namespace { // A syscall not implemented by Linux that we don't expect to be called. +#ifdef __x86_64__ constexpr uint32_t kFilteredSyscall = SYS_vserver; +#elif __aarch64__ +// Using arch_specific_syscalls which are not implemented on arm64. +constexpr uint32_t kFilteredSyscall = SYS_arch_specific_syscall+15; +#endif // Applies a seccomp-bpf filter that returns `filtered_result` for // `sysno` and allows all other syscalls. Async-signal-safe. |