Fix bug: Added syscalls for tasks example.

The tasks example stopped working on Linux (Ubuntu 22.04) due to the use of missing syscalls, which have been added in this fix. In addition, the definition files have been updated to include the newer clone3 system call (in the Linux kernel since 5.6) for new process and thread creation.
This commit is contained in:
Dennis Dillert 2023-04-02 19:54:29 +02:00 committed by Joris Vink
parent b1a3f2b0f8
commit ef37ab611d
4 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,8 @@ KORE_SECCOMP_FILTER("tasks",
KORE_SYSCALL_ALLOW(recvmsg),
KORE_SYSCALL_ALLOW(sendmmsg),
KORE_SYSCALL_ALLOW(getpeername),
KORE_SYSCALL_ALLOW(rseq),
KORE_SYSCALL_ALLOW(clone3),
);
#endif

View File

@ -287,4 +287,5 @@
#define __NR_fsconfig 431
#define __NR_fsmount 432
#define __NR_fspick 433
#define __NR_clone3 435

View File

@ -387,6 +387,7 @@
#define __NR_fsconfig 431
#define __NR_fsmount 432
#define __NR_fspick 433
#define __NR_clone3 435
#define __ARM_NR_breakpoint 0x0f0001
#define __ARM_NR_cacheflush 0x0f0002

View File

@ -343,4 +343,5 @@
#define __NR_fsconfig 431
#define __NR_fsmount 432
#define __NR_fspick 433
#define __NR_clone3 435