Blame SOURCES/0009-generator-customize-reintroduce-selinux-relabel-as-a.patch

2729bd
From 4cfba19fa2b087c4b2c5a1b67aa70eb16e9d5a59 Mon Sep 17 00:00:00 2001
2729bd
From: Laszlo Ersek <lersek@redhat.com>
2729bd
Date: Wed, 25 May 2022 09:19:58 +0200
2729bd
Subject: [PATCH] generator/customize: reintroduce "--selinux-relabel" as a
2729bd
 compat option
2729bd
2729bd
Removing "--selinux-relabel" in commit 2f6a27f1077d ("generator/customize:
2729bd
invert SELinux relabeling default", 2022-05-11) breaks existing scripts
2729bd
that invoke virt-customize and/or virt-sysprep with that option. Restore
2729bd
the option, with no functionality tied to it.
2729bd
2729bd
Fixes: 2f6a27f1077d32d1ab526427052fc88e188356f7
2729bd
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2089748
2729bd
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
2729bd
Message-Id: <20220525071958.9612-1-lersek@redhat.com>
2729bd
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
2729bd
(cherry picked from commit 4b9ee1052a4396621485fdd56d6826714e7481b1)
2729bd
---
2729bd
 generator/customize.ml | 7 +++++++
2729bd
 1 file changed, 7 insertions(+)
2729bd
2729bd
diff --git a/generator/customize.ml b/generator/customize.ml
2729bd
index 9634dad85..5abaf206f 100644
2729bd
--- a/generator/customize.ml
2729bd
+++ b/generator/customize.ml
2729bd
@@ -581,6 +581,13 @@ option disables the automatic relabeling.
2729bd
 The option is a no-op for guests that do not support SELinux.";
2729bd
   };
2729bd
 
2729bd
+  { flag_name = "selinux-relabel";
2729bd
+    flag_type = FlagBool false;
2729bd
+    flag_ml_var = "selinux_relabel_ignored";
2729bd
+    flag_shortdesc = "Compatibility option doing nothing";
2729bd
+    flag_pod_longdesc = "This is a compatibility option that does nothing.";
2729bd
+  };
2729bd
+
2729bd
   { flag_name = "sm-credentials";
2729bd
     flag_type = FlagSMCredentials "SELECTOR";
2729bd
     flag_ml_var = "sm_credentials";
2729bd
-- 
2729bd
2.31.1
2729bd