seccomp: add swapcontext into @process for ppc32
There are some modern programming languages use userspace context switches to implement coroutine features. PowerPC (32-bit) needs syscall "swapcontext" to get contexts or switch between contexts, which is special. Adding this rule should fix #9485.
This commit is contained in:
committed by
Lennart Poettering
parent
db2f8a2e8a
commit
a9518dc369
@@ -651,6 +651,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
|
||||
"rt_sigqueueinfo\0"
|
||||
"rt_tgsigqueueinfo\0"
|
||||
"setns\0"
|
||||
"swapcontext\0" /* Some archs e.g. powerpc32 are using it to do userspace context switches */
|
||||
"tgkill\0"
|
||||
"times\0"
|
||||
"tkill\0"
|
||||
|
||||
Reference in New Issue
Block a user