diff options
author | Paul Moore <pmoore@redhat.com> | 2014-08-14 13:19:32 -0400 |
---|---|---|
committer | Eduardo Otubo <eduardo.otubo@profitbricks.com> | 2014-08-21 10:29:16 +0200 |
commit | b22876cc2f863c58cfebd4a5301fc47e8ec89228 (patch) | |
tree | f43f6cb8cb337ca75a56bafd6bb76186a4414c27 | |
parent | 2656eb7c599e306b95bad82b1372fc49ba3088f6 (diff) |
seccomp: add semctl() to the syscall whitelist
QEMU needs to call semctl() for correct operation. This particular
problem was identified on shutdown with the following commandline:
# qemu -sandbox on -monitor stdio \
-device intel-hda -device hda-duplex -vnc :0
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
-rw-r--r-- | qemu-seccomp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-seccomp.c b/qemu-seccomp.c index ea8094d043..0503764047 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -230,7 +230,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = { { SCMP_SYS(timerfd_create), 240 }, { SCMP_SYS(shmctl), 240 }, { SCMP_SYS(mlock), 240 }, - { SCMP_SYS(munlock), 240 } + { SCMP_SYS(munlock), 240 }, + { SCMP_SYS(semctl), 240 } }; int seccomp_start(void) |