summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2014-04-28 15:14:35 +0200
committerPeter Maydell2014-04-28 15:14:35 +0200
commite2da502c003b9a91b4aea7684959192bd07c1f1d (patch)
treedd40855c9ddbc53d4c537c0a1705fab4e8984875
parentMerge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-04-28' in... (diff)
parentseccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist (diff)
downloadqemu-e2da502c003b9a91b4aea7684959192bd07c1f1d.tar.gz
qemu-e2da502c003b9a91b4aea7684959192bd07c1f1d.tar.xz
qemu-e2da502c003b9a91b4aea7684959192bd07c1f1d.zip
Merge remote-tracking branch 'remotes/otubo/seccomp' into staging
* remotes/otubo/seccomp: seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist seccomp: add timerfd_create and timerfd_settime to the whitelist Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--qemu-seccomp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/qemu-seccomp.c b/qemu-seccomp.c
index caa926ebf2..ea8094d043 100644
--- a/qemu-seccomp.c
+++ b/qemu-seccomp.c
@@ -143,6 +143,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
{ SCMP_SYS(getsockname), 242 },
{ SCMP_SYS(getpeername), 242 },
{ SCMP_SYS(accept4), 242 },
+ { SCMP_SYS(timerfd_settime), 242 },
{ SCMP_SYS(newfstatat), 241 },
{ SCMP_SYS(shutdown), 241 },
{ SCMP_SYS(getsockopt), 241 },
@@ -225,7 +226,11 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
{ SCMP_SYS(fchmod), 240 },
{ SCMP_SYS(shmget), 240 },
{ SCMP_SYS(shmat), 240 },
- { SCMP_SYS(shmdt), 240 }
+ { SCMP_SYS(shmdt), 240 },
+ { SCMP_SYS(timerfd_create), 240 },
+ { SCMP_SYS(shmctl), 240 },
+ { SCMP_SYS(mlock), 240 },
+ { SCMP_SYS(munlock), 240 }
};
int seccomp_start(void)