Skip to contentSkip to conversation

seccomp: add mlockall to whitelist

PATCH In review Paolo Bonzini 4 participants 4 messages Jan 20, 2015 – Jan 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 seccomp: add mlockall to whitelist

This is used by "-realtime mlock=on".

---
 qemu-seccomp.c | 1 +
 1 file changed, 1 insertion(+)
qemu-seccomp.c +1 -0
index b0c6269..f9de0d3 100644
@@ -229,6 +229,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(shmdt), 240 },
     { SCMP_SYS(timerfd_create), 240 },
     { SCMP_SYS(shmctl), 240 },
+    { SCMP_SYS(mlockall), 240 },
     { SCMP_SYS(mlock), 240 },
     { SCMP_SYS(munlock), 240 },
     { SCMP_SYS(semctl), 240 },
Signature · 1 line
2.1.0
Acked-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 22 lines · Paolo Bonzini

This is used by "-realtime mlock=on".

---
 qemu-seccomp.c | 1 +
 1 file changed, 1 insertion(+)
qemu-seccomp.c +1 -0
index b0c6269..f9de0d3 100644
@@ -229,6 +229,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(shmdt), 240 },
     { SCMP_SYS(timerfd_create), 240 },
     { SCMP_SYS(shmctl), 240 },
+    { SCMP_SYS(mlockall), 240 },
     { SCMP_SYS(mlock), 240 },
     { SCMP_SYS(munlock), 240 },
     { SCMP_SYS(semctl), 240 },
Signature · 1 line
2.1.0

I'll make a pull request by Friday at the end of the day. Thanks for the patch.

Signature · 2 lines
Eduardo Otubo
ProfitBricks GmbH