Skip to contentSkip to conversation

seccomp: add missing system call to whitelist

GIT PULL Eduardo Otubo 1 participant 2 messages Dec 3, 2013

lore
Share & tools
lore
#0 lore raw

Anthony,

The following changes since commit 7dc65c02fe3fb8f3146ce0b9ff5fec5945329f0e:

Open 2.0 development tree (2013-11-27 14:02:45 -0800)

are available in the git repository at:
git://github.com/otubo/qemu.git seccomp

Paul Moore (1):
seccomp: add kill() to the syscall whitelist

 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 01/01] seccomp: add kill() to the syscall whitelist

From: Paul Moore <[email protected]>

The kill() syscall is triggered with the following command:

 # qemu -sandbox on -monitor stdio \
        -device intel-hda -device hda-duplex -vnc :0

The resulting syslog/audit message:

 # ausearch -m SECCOMP
 ----
 time->Wed Nov 20 09:52:08 2013
 type=SECCOMP msg=audit(1384912328.482:6656): auid=0 uid=0 gid=0 ses=854
  subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12087
  comm="qemu-kvm" sig=31 syscall=62 compat=0 ip=0x7f7a1d2abc67 code=0x0
 # scmp_sys_resolver 62
 kill
---
 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 69cee44..cf07869 100644
@@ -114,6 +114,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(write), 244 },
     { SCMP_SYS(fcntl), 243 },
     { SCMP_SYS(tgkill), 242 },
+    { SCMP_SYS(kill), 242 },
     { SCMP_SYS(rt_sigaction), 242 },
     { SCMP_SYS(pipe2), 242 },
     { SCMP_SYS(munmap), 242 },
Signature · 1 line
1.7.1