Received: from eggs.gnu.org ([2001:4830:134:3::10]:51919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgd6i-00063y-JG for qemu-devel@nongnu.org; Mon, 28 Sep 2015 14:25:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgd6d-00039V-J9 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 14:25:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgd6d-00039G-EG for qemu-devel@nongnu.org; Mon, 28 Sep 2015 14:24:55 -0400 From: Paul Moore Date: Mon, 28 Sep 2015 14:24:52 -0400 Message-ID: <206215295.9GP3EI1jzg@sifl> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] [PATCH v2] Add argument filters to the seccomp sandbox List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Namsun Ch'o Cc: qemu-devel@nongnu.org, eduardo.otubo@profitbricks.com On Saturday, September 26, 2015 01:06:57 AM Namsun Ch'o wrote: > > I've suggested this in the past but to my knowledge no has done any work > > in this direction, including myself. Despite the lack of progress, I still > > think this is a very worthwhile idea. > > Which is exactly why I think a configuration file would be the best option > instead of --enable-syscalls=foo,bar,baz. It would allow someone to easily > customize their policy without needing to create a patch, or wait on QEMU > developers to do work on it. To be clear, I'm not suggesting "--enable-syscalls=foo,bar,...", what I'm suggesting is a decomposition of the current filter list into blocks of syscalls that are needed to enable specific functionality. For example, if you enable audio support at runtime a set of syscalls will be added to the filter whitelist, if you enable a network device a different set of syscalls will be added to the filter, and so on. I think having an admin specified filter, either via a command line or configuration file, is a step in the wrong direction. -- paul moore security @ redhat