[libvirt PATCH 07/13] rpm: move logic for setting selinux policy variables

Daniel P. Berrangé berrange at redhat.com
Fri Aug 6 17:48:04 UTC 2021


It is currently mixed in with the comment and variables controlling the
min OS version.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 libvirt.spec.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index aa50db3c16..37f8a218e6 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -4,11 +4,6 @@
 # that's still supported by the vendor. It may work on other distros
 # or versions, but no effort will be made to ensure that going forward.
 
-%if 0%{?fedora} > 34 || 0%{?rhel} > 8
-    %global with_selinux 1
-    %global modulename virt
-%endif
-
 %define min_rhel 8
 %define min_fedora 33
 
@@ -192,6 +187,11 @@
     %define with_modular_daemons 1
 %endif
 
+%if 0%{?fedora} > 34 || 0%{?rhel} > 8
+    %global with_selinux 1
+    %global modulename virt
+%endif
+
 # Force QEMU to run as non-root
 %define qemu_user  qemu
 %define qemu_group  qemu
-- 
2.31.1




More information about the libvir-list mailing list