|
|
9ae3a8 |
From 2b34fb6fdd65055bb38f53312542a1ea7ecbed2e Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Date: Thu, 11 Sep 2014 03:16:56 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 1/6] seccomp: add semctl() to the syscall whitelist
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <20140911031656.11035.52808.stgit@localhost>
|
|
|
9ae3a8 |
Patchwork-id: 60971
|
|
|
9ae3a8 |
O-Subject: [RHEL7 qemu-kvm PATCH] seccomp: add semctl() to the syscall whitelist
|
|
|
9ae3a8 |
Bugzilla: 1026314
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
commit b22876cc2f863c58cfebd4a5301fc47e8ec89228
|
|
|
9ae3a8 |
Author: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Date: Thu Aug 14 13:19:32 2014 -0400
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
seccomp: add semctl() to the syscall whitelist
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
QEMU needs to call semctl() for correct operation. This particular
|
|
|
9ae3a8 |
problem was identified on shutdown with the following commandline:
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
# qemu -sandbox on -monitor stdio \
|
|
|
9ae3a8 |
-device intel-hda -device hda-duplex -vnc :0
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
qemu-seccomp.c | 3 ++-
|
|
|
9ae3a8 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/qemu-seccomp.c b/qemu-seccomp.c
|
|
|
9ae3a8 |
index cca1070..59cae8e 100644
|
|
|
9ae3a8 |
--- a/qemu-seccomp.c
|
|
|
9ae3a8 |
+++ b/qemu-seccomp.c
|
|
|
9ae3a8 |
@@ -245,7 +245,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
|
|
|
9ae3a8 |
{ SCMP_SYS(shmdt), 240 },
|
|
|
9ae3a8 |
{ SCMP_SYS(shmctl), 240 },
|
|
|
9ae3a8 |
{ SCMP_SYS(mlock), 240 },
|
|
|
9ae3a8 |
- { SCMP_SYS(munlock), 240 }
|
|
|
9ae3a8 |
+ { SCMP_SYS(munlock), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(semctl), 240 }
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
int seccomp_start(void)
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|