From: Eduardo Otubo <otubo@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org, pmoore@redhat.com, berrange@redhat.com,
eblake@redhat.com
Subject: Re: [Qemu-devel] [PATCH v4 0/4] seccomp fixes
Date: Thu, 23 Aug 2018 16:43:45 +0200 [thread overview]
Message-ID: <20180823144345.GL3923@vader> (raw)
In-Reply-To: <20180822170250.29573-1-marcandre.lureau@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
On 22/08/2018 - 19:02:46, Marc-André Lureau wrote:
> Hi,
>
> This series fixes 2 issues with -sandbox:
>
> - The seccomp action SCMP_ACT_KILL results in immediate termination of
> the thread that made the bad system call. However, qemu being
> multi-threaded, it keeps running. There is no easy way for parent
> process / management layer (libvirt) to know about that situation.
>
> Instead, the default SIGSYS handler when invoked with SCMP_ACT_TRAP
> will terminate the program and core dump.
>
> This may not be the most secure solution, but probably better than
> just killing the offending thread. SCMP_ACT_KILL_PROCESS has been
> added in Linux 4.14 to improve the situation, which I propose to use
> by default if available.
>
> Related to:
> https://bugzilla.redhat.com/show_bug.cgi?id=1594456
>
> - The seccomp filter isn't applied to all threads. We can solve the
> issue by using SECCOMP_FILTER_FLAG_TSYNC since libseccomp 2.2.0 and
> kernel >= 3.17.
>
> v3:
> - modify qemu_seccomp() to set errno=ENOSYS
> - add patch "seccomp: set the seccomp filter to all threads"
>
> v2:
> - fix clang unused inline warning
> - add acked-by/r-b tags
>
> Marc-André Lureau (4):
> seccomp: use SIGSYS signal instead of killing the thread
> seccomp: prefer SCMP_ACT_KILL_PROCESS if available
> configure: require libseccomp 2.2.0
> seccomp: set the seccomp filter to all threads
>
> qemu-seccomp.c | 36 +++++++++++++++++++++++++++++++++++-
> configure | 7 ++-----
> 2 files changed, 37 insertions(+), 6 deletions(-)
>
> --
> 2.18.0.547.g1d89318c48
>
Acked-by: Eduardo Otubo <otubo@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
prev parent reply other threads:[~2018-08-23 14:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-22 17:02 [Qemu-devel] [PATCH v4 0/4] seccomp fixes Marc-André Lureau
2018-08-22 17:02 ` [Qemu-devel] [PATCH v4 1/4] seccomp: use SIGSYS signal instead of killing the thread Marc-André Lureau
2018-08-22 17:02 ` [Qemu-devel] [PATCH v4 2/4] seccomp: prefer SCMP_ACT_KILL_PROCESS if available Marc-André Lureau
2018-08-22 17:02 ` [Qemu-devel] [PATCH v4 3/4] configure: require libseccomp 2.2.0 Marc-André Lureau
2018-08-22 17:19 ` Daniel P. Berrangé
2018-08-22 17:02 ` [Qemu-devel] [PATCH v4 4/4] seccomp: set the seccomp filter to all threads Marc-André Lureau
2018-08-22 17:23 ` Daniel P. Berrangé
2018-08-23 14:43 ` Eduardo Otubo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180823144345.GL3923@vader \
--to=otubo@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pmoore@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.