From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnpS8-0005gy-Ff for qemu-devel@nongnu.org; Tue, 03 Dec 2013 07:51:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnpRv-0002Nd-RN for qemu-devel@nongnu.org; Tue, 03 Dec 2013 07:51:48 -0500 Received: from e24smtp03.br.ibm.com ([32.104.18.24]:51024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnpRv-0002NH-Ez for qemu-devel@nongnu.org; Tue, 03 Dec 2013 07:51:35 -0500 Received: from /spool/local by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Dec 2013 10:51:32 -0200 Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id 298041DC006E for ; Tue, 3 Dec 2013 07:51:30 -0500 (EST) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by d24relay02.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rB3CpDjM49938560 for ; Tue, 3 Dec 2013 10:51:13 -0200 Received: from d24av02.br.ibm.com (localhost [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rB3CpT6s009051 for ; Tue, 3 Dec 2013 10:51:29 -0200 From: Eduardo Otubo Date: Tue, 3 Dec 2013 10:51:17 -0200 Message-Id: <1386075077-3240-2-git-send-email-otubo@linux.vnet.ibm.com> In-Reply-To: <1386075077-3240-1-git-send-email-otubo@linux.vnet.ibm.com> References: <1386075077-3240-1-git-send-email-otubo@linux.vnet.ibm.com> Subject: [Qemu-devel] [PULL 01/01] seccomp: add kill() to the syscall whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pmoore@redhat.com, anthony@codemonkey.ws From: Paul Moore 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 Reported-by: CongLi Tested-by: CongLi Signed-off-by: Paul Moore Acked-by: Eduardo Otubo --- qemu-seccomp.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 69cee44..cf07869 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -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 }, -- 1.7.1