qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv3 0/3] seccomp: adding blacklist support with command line
@ 2013-10-09  0:42 Eduardo Otubo
  2013-10-09  0:42 ` [Qemu-devel] [PATCHv3 1/3] seccomp: adding blacklist support Eduardo Otubo
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Eduardo Otubo @ 2013-10-09  0:42 UTC (permalink / raw)
  To: qemu-devel; +Cc: pmoore, coreyb, anthony, Eduardo Otubo

v3: The "-netdev tap" option is checked in order to decide if the blacklist is
eligible to be installed or not, since it's one the most used features that is
known to use the exec() system call. It's an automatic mechanism to avoid Qemu
to break when using the blacklist feature.

v2: The blacklist works exactly the opposite as the whitelist. I set the
default behaiour to SCMP_ACT_ALLOW and the exceptions to SCMP_ACT_KILL;
remembering it inherits the behavior from the previous installed whitelist.

v1: The second whitelist is installed right before the vcpu starts, it contains all
the system calls the first one has except for exec() and select(), which are
big major syscalls that I could extensively test with virt-test and do not
cause any damage to the general execution.

This patch series also contain the command line support for this feature and
some minor fixes, all of them described in their own commit messages.

The environment in which the second whitelist is installed seems to need less
system calls than the first, so the procedure here will be the same: Keep
testing with virt-test and get to the smallest list as possible.

Eduardo Otubo (3):
  seccomp: adding blacklist support
  seccomp: adding command line support for blacklist
  seccomp: general fixes

 include/sysemu/seccomp.h |  6 ++++-
 qemu-options.hx          |  8 +++---
 qemu-seccomp.c           | 66 ++++++++++++++++++++++++++++++++++++++----------
 vl.c                     | 42 +++++++++++++++++++++++++++---
 4 files changed, 101 insertions(+), 21 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-10-10 11:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-09  0:42 [Qemu-devel] [PATCHv3 0/3] seccomp: adding blacklist support with command line Eduardo Otubo
2013-10-09  0:42 ` [Qemu-devel] [PATCHv3 1/3] seccomp: adding blacklist support Eduardo Otubo
2013-10-09  2:05   ` Eric Blake
2013-10-09 13:11     ` Eduardo Otubo
2013-10-09 15:19   ` Corey Bryant
2013-10-09 21:36   ` Paul Moore
2013-10-10 11:33     ` Corey Bryant
2013-10-09  0:42 ` [Qemu-devel] [PATCHv3 2/3] seccomp: adding command line support for blacklist Eduardo Otubo
2013-10-09 14:40   ` Eduardo Otubo
2013-10-09  0:42 ` [Qemu-devel] [PATCHv3 3/3] seccomp: general fixes Eduardo Otubo
2013-10-09 21:38   ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).