diff options
author | Paul Moore | 2014-08-14 19:19:32 +0200 |
---|---|---|
committer | Eduardo Otubo | 2014-08-21 10:29:16 +0200 |
commit | b22876cc2f863c58cfebd4a5301fc47e8ec89228 (patch) | |
tree | f43f6cb8cb337ca75a56bafd6bb76186a4414c27 /qemu-seccomp.c | |
parent | Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140819'... (diff) | |
download | qemu-b22876cc2f863c58cfebd4a5301fc47e8ec89228.tar.gz qemu-b22876cc2f863c58cfebd4a5301fc47e8ec89228.tar.xz qemu-b22876cc2f863c58cfebd4a5301fc47e8ec89228.zip |
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>
Diffstat (limited to 'qemu-seccomp.c')
-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) |