|
|
9ae3a8 |
From 06d87c5605ba8229f2a3a0f257621bcf6e8c4330 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Date: Wed, 30 Apr 2014 19:54:46 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 03/13] seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20140430195446.13069.14348.stgit@localhost>
|
|
|
9ae3a8 |
Patchwork-id: 58635
|
|
|
9ae3a8 |
O-Subject: [RHEL7 qemu-kvm PATCH] seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist
|
|
|
9ae3a8 |
Bugzilla: 1026314
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1026314
|
|
|
9ae3a8 |
Brew: https://brewweb.devel.redhat.com/taskinfo?taskID=7405978
|
|
|
9ae3a8 |
Upstream: Upstream, see commit ID below
|
|
|
9ae3a8 |
Testing: Tested, see BZ
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Minor differences from upstream patch due to a slowly diverging
|
|
|
9ae3a8 |
codebase.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
commit e3f9bb011ae24a594310fa4917754945dc832f8f
|
|
|
9ae3a8 |
Author: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Date: Wed Feb 26 10:25:01 2014 -0500
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Additional testing reveals that PulseAudio requires shmctl() and the
|
|
|
9ae3a8 |
mlock()/munlock() syscalls on some systems/configurations. As before,
|
|
|
9ae3a8 |
on systems that do require these syscalls, the problem can be seen with
|
|
|
9ae3a8 |
the following command line:
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
# qemu -monitor stdio -sandbox on \
|
|
|
9ae3a8 |
-device intel-hda -device hda-duplex
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
qemu-seccomp.c | 5 ++++-
|
|
|
9ae3a8 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
qemu-seccomp.c | 5 ++++-
|
|
|
9ae3a8 |
1 files changed, 4 insertions(+), 1 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/qemu-seccomp.c b/qemu-seccomp.c
|
|
|
9ae3a8 |
index 3a2fbed..cca1070 100644
|
|
|
9ae3a8 |
--- a/qemu-seccomp.c
|
|
|
9ae3a8 |
+++ b/qemu-seccomp.c
|
|
|
9ae3a8 |
@@ -242,7 +242,10 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
|
|
|
9ae3a8 |
{ SCMP_SYS(fchmod), 240 },
|
|
|
9ae3a8 |
{ SCMP_SYS(shmget), 240 },
|
|
|
9ae3a8 |
{ SCMP_SYS(shmat), 240 },
|
|
|
9ae3a8 |
- { SCMP_SYS(shmdt), 240 }
|
|
|
9ae3a8 |
+ { SCMP_SYS(shmdt), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(shmctl), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(mlock), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(munlock), 240 }
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
int seccomp_start(void)
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|