seccomp: add swapcontext into @process for ppc32
authorLion Yang <lion@aosc.io>
Mon, 2 Jul 2018 20:58:01 +0000 (04:58 +0800)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Jul 2018 11:35:02 +0000 (13:35 +0200)
commita9518dc36925ddca4d13ee46f3e78c46f0f4851a
tree5514da9907041663b87ff3b9358f3a85562c0b8b
parentdb2f8a2e8aae680cb98c0e7da9e0533e0aa8021f
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.
src/shared/seccomp-util.c