From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLasj-0002Qn-Q3 for qemu-devel@nongnu.org; Thu, 06 Mar 2014 11:10:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLasb-0004De-CZ for qemu-devel@nongnu.org; Thu, 06 Mar 2014 11:10:49 -0500 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]:40976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLasb-0004DJ-5I for qemu-devel@nongnu.org; Thu, 06 Mar 2014 11:10:41 -0500 Received: by mail-ea0-f177.google.com with SMTP id h10so1776438eak.22 for ; Thu, 06 Mar 2014 08:10:40 -0800 (PST) Sender: Paolo Bonzini Message-ID: <53189DFD.6020104@redhat.com> Date: Thu, 06 Mar 2014 17:10:37 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20140306145017.1761.50037.stgit@localhost> In-Reply-To: <20140306145017.1761.50037.stgit@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] seccomp: add getrusage() to the syscall whitelist for Open vSwitch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Moore , qemu-devel@nongnu.org, otubo@linux.vnet.ibm.com Il 06/03/2014 15:50, Paul Moore ha scritto: > When QEMU is used with Open vSwitch it is common to create netdev > script and downscript scripts that use the ovs-vsctl command to manage > the underlying network devices. Unfortunately, ovs-vsctl calls the > getrusage() syscall which is not currently present in the QEMU/seccomp > whistelist. > > Signed-off-by: Paul Moore > --- > qemu-seccomp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/qemu-seccomp.c b/qemu-seccomp.c > index caa926e..86210a4 100644 > --- a/qemu-seccomp.c > +++ b/qemu-seccomp.c > @@ -225,7 +225,8 @@ 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(getrusage), 240 } > }; > > int seccomp_start(void) > > > NACK, when QEMU is used in sandbox mode you should use file descriptor passing instead. Paolo