Received: from eggs.gnu.org ([208.118.235.92]:52084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXCRP-0000Lw-SN for qemu-devel@nongnu.org; Tue, 30 Apr 2013 11:26:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXCRN-0005ua-B2 for qemu-devel@nongnu.org; Tue, 30 Apr 2013 11:26:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXCRN-0005uK-1m for qemu-devel@nongnu.org; Tue, 30 Apr 2013 11:26:01 -0400 From: Paul Moore Date: Tue, 30 Apr 2013 11:24:23 -0400 Message-ID: <3720772.nm306DgS3l@sifl> In-Reply-To: <517EEB8A.7040700@linux.vnet.ibm.com> References: <517AC9E5.3050204@linux.vnet.ibm.com> <7515044.dYPbKXmJQB@sifl> <517EEB8A.7040700@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] [RFC] Continuous work on sandboxing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corey Bryant Cc: qemu-devel@nongnu.org, Eric Paris , Eduardo Otubo On Monday, April 29, 2013 05:52:10 PM Corey Bryant wrote: > On 04/26/2013 05:07 PM, Paul Moore wrote: > > [snip] > > > >> >3. Debugging and/or learning mode - third party libraries still have the > >> >problem of interfering in the Qemu's signal mask. According to some > >> >previous discussions, perhaps patch all external libraries that mass up > >> >with this mask (spice, for example) is a way to solve it. But not sure > >> >if it worth the time spent. Would like to hear you guys. > > > > I think patching all the libraries is a losing battle, I think we need to > > pursue alternate debugging techniques. > > I agree. It would be nice to have some sort of learning mode that > reported all denied syscalls on a single run, but signal handlers > doesn't seem like the right way. Maybe we could improve on this > approach, since it never gained traction: https://lkml.org/lkml/2013/1/7/313 > > At least we can get a single denied syscall at a time today via the > audit log that the kernel issues. Eduardo, you may want to see if > there's a good place to document that for QEMU so that people know where > to look. Lately I've been using the fact that the seccomp BPF filter result generates an audit log; it either dumps to syslog or the audit log (depending on your configuration) and seems to accomplish most of what we wanted with SECCOMP_RET_INFO. I'm always open to new/better ideas, but this has been working reasonably well for me for the past few months. -- paul moore security and virtualization @ redhat