From: Laine Stump <laine@redhat.com>
To: libvir-list@redhat.com
Cc: passt-dev@passt.top
Subject: Re: [libvirt PATCH 0/4] qemu/security: start passt process with correct SELinux label
Date: Thu, 9 Mar 2023 00:06:52 -0500 [thread overview]
Message-ID: <f712e00d-3d78-62c6-65c7-c67a57699117@redhat.com> (raw)
In-Reply-To: <20230309044908.29316-1-laine@redhat.com>
On 3/8/23 11:49 PM, Laine Stump wrote:
> All the necessary explanation is in Path 3/4
>
> We may want to turn on this same behavior for some other external
> processes, but right now the one we need it for is passt.
>
> Resolves: https://bugzilla.redhat.com/2172267
I forgot to mention that proper operation requires the latest updates to
passt, as well as a patch to selinux-policy that still needs to be
posted/merged.
>
> Laine Stump (4):
> util: add an API to retrieve the resolved path to a virCommand's
> binary
> security: make args to virSecuritySELinuxContextAddRange() const
> security: make it possible to set SELinux label of child process from
> its binary
> qemu: set SELinux label of passt process to its own binary's label
>
> src/libvirt_private.syms | 1 +
> src/qemu/qemu_dbus.c | 2 +-
> src/qemu/qemu_passt.c | 2 +-
> src/qemu/qemu_process.c | 2 +-
> src/qemu/qemu_security.c | 5 ++-
> src/qemu/qemu_security.h | 1 +
> src/qemu/qemu_slirp.c | 2 +-
> src/qemu/qemu_tpm.c | 3 +-
> src/qemu/qemu_vhost_user_gpu.c | 2 +-
> src/security/security_apparmor.c | 1 +
> src/security/security_dac.c | 1 +
> src/security/security_driver.h | 1 +
> src/security/security_manager.c | 8 +++-
> src/security/security_manager.h | 1 +
> src/security/security_nop.c | 1 +
> src/security/security_selinux.c | 77 ++++++++++++++++++++++++++++++--
> src/security/security_stack.c | 5 ++-
> src/util/vircommand.c | 51 ++++++++++++++++-----
> src/util/vircommand.h | 1 +
> 19 files changed, 143 insertions(+), 24 deletions(-)
>
next prev parent reply other threads:[~2023-03-09 5:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 4:49 [libvirt PATCH 0/4] qemu/security: start passt process with correct SELinux label Laine Stump
2023-03-09 4:49 ` [libvirt PATCH 1/4] util: add an API to retrieve the resolved path to a virCommand's binary Laine Stump
2023-03-09 4:49 ` [libvirt PATCH 2/4] security: make args to virSecuritySELinuxContextAddRange() const Laine Stump
2023-03-09 4:49 ` [libvirt PATCH 3/4] security: make it possible to set SELinux label of child process from its binary Laine Stump
2023-03-09 4:49 ` [libvirt PATCH 4/4] qemu: set SELinux label of passt process to its own binary's label Laine Stump
2023-03-09 5:06 ` Laine Stump [this message]
2023-03-10 11:58 ` [libvirt PATCH 0/4] qemu/security: start passt process with correct SELinux label Michal Prívozník
2023-03-10 14:39 ` Andrea Bolognani
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=f712e00d-3d78-62c6-65c7-c67a57699117@redhat.com \
--to=laine@redhat.com \
--cc=libvir-list@redhat.com \
--cc=passt-dev@passt.top \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
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 IMAP folder(s).