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