]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: set SELinux label of passt process to its own binary's label
authorLaine Stump <laine@redhat.com>
Wed, 1 Mar 2023 20:58:24 +0000 (15:58 -0500)
committerLaine Stump <laine@redhat.com>
Fri, 10 Mar 2023 19:09:36 +0000 (14:09 -0500)
commit8419dd3b69cfada783a2e6df315e45dd294b0d18
tree789b9bbffe253617c2947201a8b0957839777673
parent75056f61f12d6efec51f699f2b901f8d02cd075c
qemu: set SELinux label of passt process to its own binary's label

set useBinarySpecificLabel = true when calling qemuSecurityCommandRun
for the passt process, so that the new process context will include
the binary-specific label that should be used for passt (passt_t)
rather than svirt_t (as would happen if useBinarySpecificLabel was
false). (The MCS part of the label, which is common to all child
processes related to a particular qemu domain instance, is also set).

Resolves: https://bugzilla.redhat.com/2172267
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_passt.c