From 62309ab40ce69ab8f24d534434cf5a773f5843d7 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 30 Sep 2025 13:33:48 -0400 Subject: [PATCH] lib/launch-libvirt.c: don't write is an output-only XML element. setting it when defining XML does nothing Signed-off-by: Cole Robinson --- lib/launch-libvirt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c index 56176f4fb..5b9b2e629 100644 --- a/lib/launch-libvirt.c +++ b/lib/launch-libvirt.c @@ -1262,7 +1262,7 @@ construct_libvirt_xml_seclabel (guestfs_h *g, attribute ("type", "none"); } end_element (); } - else if (params->data->selinux_label && params->data->selinux_imagelabel) { + else if (params->data->selinux_label) { /* Enable sVirt and pass a custom inherited from the * original libvirt domain (when guestfs_add_domain was called). * https://bugzilla.redhat.com/show_bug.cgi?id=912499#c7 @@ -1272,7 +1272,6 @@ construct_libvirt_xml_seclabel (guestfs_h *g, attribute ("model", "selinux"); attribute ("relabel", "yes"); single_element ("label", params->data->selinux_label); - single_element ("imagelabel", params->data->selinux_imagelabel); } end_element (); }