seccomp: allow action to be customized per syscall
commit8f46f56260cb7eaf1bcc77366c8ce69af9bd5bec
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 29 Jul 2021 11:15:57 +0000 (29 12:15 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 16 Feb 2022 18:52:40 +0000 (16 18:52 +0000)
tree2612178f43a03ac2cf63c5d356703e3532232b85
parente3296cc796aeaf319f3ed4e064ec309baf5e4da4
seccomp: allow action to be customized per syscall

We're currently tailoring whether to use kill process or return EPERM
based on the syscall set. This is not flexible enough for future
requirements where we also need to be able to return a variety of
actions on a per-syscall granularity.

Acked-by: Eduardo Otubo <otubo@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
softmmu/qemu-seccomp.c