diff options
author | Topi Miettinen <toiwoton@gmail.com> | 2017-09-02 11:40:44 +0300 |
---|---|---|
committer | Topi Miettinen <toiwoton@gmail.com> | 2017-09-02 11:40:44 +0300 |
commit | f883155b35979aa6adaf5de219ff8b56f3dc2539 (patch) | |
tree | 830a0468d5d7d6825a4b893b53e6c4d104054e26 | |
parent | Workaround for build problems on arm64, s390x and sparc64 (diff) | |
download | firejail-f883155b35979aa6adaf5de219ff8b56f3dc2539.tar.gz firejail-f883155b35979aa6adaf5de219ff8b56f3dc2539.tar.zst firejail-f883155b35979aa6adaf5de219ff8b56f3dc2539.zip |
Workaround for build problems, but correct problem this time
-rw-r--r-- | src/fseccomp/syscall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fseccomp/syscall.c b/src/fseccomp/syscall.c index d5b40cf8e..abdedb957 100644 --- a/src/fseccomp/syscall.c +++ b/src/fseccomp/syscall.c | |||
@@ -83,6 +83,9 @@ static const SyscallGroupList sysgroups[] = { | |||
83 | #ifdef SYS_vm86old | 83 | #ifdef SYS_vm86old |
84 | "vm86old" | 84 | "vm86old" |
85 | #endif | 85 | #endif |
86 | #if !defined(SYS_modify_ldt) && !defined(SYS_subpage_prot) && !defined(SYS_switch_endian) && !defined(SYS_vm86) && !defined(SYS_vm86old) | ||
87 | "__dummy_syscall__" // workaround for arm64, s390x and sparc64 which don't have any of above defined and empty syscall lists are not allowed | ||
88 | #endif | ||
86 | }, | 89 | }, |
87 | { .name = "@debug", .list = | 90 | { .name = "@debug", .list = |
88 | #ifdef SYS_lookup_dcookie | 91 | #ifdef SYS_lookup_dcookie |
@@ -103,9 +106,6 @@ static const SyscallGroupList sysgroups[] = { | |||
103 | #ifdef SYS_sys_debug_setcontext | 106 | #ifdef SYS_sys_debug_setcontext |
104 | "sys_debug_setcontext," | 107 | "sys_debug_setcontext," |
105 | #endif | 108 | #endif |
106 | #if !defined(SYS_lookup_dcookie) && !defined(SYS_perf_event_open) && !defined(SYS_process_vm_writev) && !defined(SYS_rtas) && !defined(SYS_s390_runtime_instr) && !defined(SYS_sys_debug_setcontext) | ||
107 | "__dummy_syscall__" // workaround for arm64, s390x and sparc64 which don't have any of above defined and empty syscall lists are not allowed | ||
108 | #endif | ||
109 | }, | 109 | }, |
110 | { .name = "@default", .list = | 110 | { .name = "@default", .list = |
111 | "@cpu-emulation," | 111 | "@cpu-emulation," |