|
|
9ae3a8 |
From 38a4a6fb83fc002980bda2b47662997181607579 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Date: Mon, 27 Jan 2014 21:43:17 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 02/28] seccomp: add some basic shared memory syscalls to the whitelist
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Paul Moore <pmoore@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20140127214317.24608.67441.stgit@localhost>
|
|
|
9ae3a8 |
Patchwork-id: 56967
|
|
|
9ae3a8 |
O-Subject: [RHEL7 qemu-kvm PATCH 2/2] seccomp: add some basic shared memory syscalls to the whitelist
|
|
|
9ae3a8 |
Bugzilla: 1026314
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Juan Quintela <quintela@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1026314
|
|
|
9ae3a8 |
Brew: https://brewweb.devel.redhat.com/taskinfo?taskID=6956172
|
|
|
9ae3a8 |
Upstream: upstream, see commit IDs
|
|
|
9ae3a8 |
Testing: tested, see BZ
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
seccomp: add some basic shared memory syscalls to the whitelist
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
PulseAudio requires the use of shared memory so add shmget(), shmat(),
|
|
|
9ae3a8 |
and shmdt() to the syscall whitelist.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Reported-by: xuhan@redhat.com
|
|
|
9ae3a8 |
Signed-off-by: Paul Moore <pmoore@redhat.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 34a54e4..3a2fbed 100644
|
|
|
9ae3a8 |
--- a/qemu-seccomp.c
|
|
|
9ae3a8 |
+++ b/qemu-seccomp.c
|
|
|
9ae3a8 |
@@ -239,7 +239,10 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
|
|
|
9ae3a8 |
{ SCMP_SYS(io_destroy), 241 },
|
|
|
9ae3a8 |
{ SCMP_SYS(arch_prctl), 240 },
|
|
|
9ae3a8 |
{ SCMP_SYS(mkdir), 240 },
|
|
|
9ae3a8 |
- { SCMP_SYS(fchmod), 240 }
|
|
|
9ae3a8 |
+ { SCMP_SYS(fchmod), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(shmget), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(shmat), 240 },
|
|
|
9ae3a8 |
+ { SCMP_SYS(shmdt), 240 }
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
int seccomp_start(void)
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|