Blame SOURCES/0003-update-common-submodule.patch

ca2a74
From 10e2f3fc7eef6da4d741f7617e80d028257d9884 Mon Sep 17 00:00:00 2001
ca2a74
From: Laszlo Ersek <lersek@redhat.com>
ca2a74
Date: Wed, 25 May 2022 13:06:01 +0200
ca2a74
Subject: [PATCH] update common submodule
ca2a74
ca2a74
Shortlog for 48527b8768d7..f8de5508fe75:
ca2a74
ca2a74
Laszlo Ersek (1):
ca2a74
      mlcustomize: refresh generated files
ca2a74
ca2a74
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2089748
ca2a74
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
ca2a74
(cherry picked from commit 273de755dfe7eb0f1e81dc62463c125e8bed0cff)
ca2a74
---
ca2a74
 common | 2 +-
ca2a74
 1 file changed, 1 insertion(+), 1 deletion(-)
ca2a74
ca2a74
Submodule common 48527b876..f8de5508f:
ca2a74
diff --git a/common/mlcustomize/customize-options.pod b/common/mlcustomize/customize-options.pod
ca2a74
index a83c80a..8aafacd 100644
ca2a74
--- a/common/mlcustomize/customize-options.pod
ca2a74
+++ b/common/mlcustomize/customize-options.pod
ca2a74
@@ -310,6 +310,10 @@ It cannot delete directories, only regular files.
ca2a74
 
ca2a74
 =back
ca2a74
 
ca2a74
+=item B<--selinux-relabel>
ca2a74
+
ca2a74
+This is a compatibility option that does nothing.
ca2a74
+
ca2a74
 =item B<--sm-attach> SELECTOR
ca2a74
 
ca2a74
 Attach to a pool using C<subscription-manager>.
ca2a74
diff --git a/common/mlcustomize/customize-synopsis.pod b/common/mlcustomize/customize-synopsis.pod
ca2a74
index 2520853..9e2c4b2 100644
ca2a74
--- a/common/mlcustomize/customize-synopsis.pod
ca2a74
+++ b/common/mlcustomize/customize-synopsis.pod
ca2a74
@@ -13,4 +13,4 @@
ca2a74
     [--uninstall PKG,PKG..] [--update] [--upload FILE:DEST]
ca2a74
     [--write FILE:CONTENT] [--no-logfile]
ca2a74
     [--password-crypto md5|sha256|sha512] [--no-selinux-relabel]
ca2a74
-    [--sm-credentials SELECTOR]
ca2a74
+    [--selinux-relabel] [--sm-credentials SELECTOR]
ca2a74
diff --git a/common/mlcustomize/customize_cmdline.ml b/common/mlcustomize/customize_cmdline.ml
ca2a74
index 5d404e8..a17bed4 100644
ca2a74
--- a/common/mlcustomize/customize_cmdline.ml
ca2a74
+++ b/common/mlcustomize/customize_cmdline.ml
ca2a74
@@ -111,6 +111,8 @@ and flags = {
ca2a74
       (* --password-crypto md5|sha256|sha512 *)
ca2a74
   no_selinux_relabel : bool;
ca2a74
       (* --no-selinux-relabel *)
ca2a74
+  selinux_relabel_ignored : bool;
ca2a74
+      (* --selinux-relabel *)
ca2a74
   sm_credentials : Subscription_manager.sm_credentials option;
ca2a74
       (* --sm-credentials SELECTOR *)
ca2a74
 }
ca2a74
@@ -122,6 +124,7 @@ let rec argspec () =
ca2a74
   let scrub_logfile = ref false in
ca2a74
   let password_crypto = ref None in
ca2a74
   let no_selinux_relabel = ref false in
ca2a74
+  let selinux_relabel_ignored = ref false in
ca2a74
   let sm_credentials = ref None in
ca2a74
 
ca2a74
   let rec get_ops () = {
ca2a74
@@ -132,6 +135,7 @@ let rec argspec () =
ca2a74
     scrub_logfile = !scrub_logfile;
ca2a74
     password_crypto = !password_crypto;
ca2a74
     no_selinux_relabel = !no_selinux_relabel;
ca2a74
+    selinux_relabel_ignored = !selinux_relabel_ignored;
ca2a74
     sm_credentials = !sm_credentials;
ca2a74
   }
ca2a74
   in
ca2a74
@@ -464,6 +468,12 @@ let rec argspec () =
ca2a74
       s_"Do not relabel files with correct SELinux labels"
ca2a74
     ),
ca2a74
     None, "Do not attempt to correct the SELinux labels of files in the guest.\n\nIn such guests that support SELinux, customization automatically\nrelabels files so that they have the correct SELinux label.  (The\nrelabeling is performed immediately, but if the operation fails,\ncustomization will instead touch F</.autorelabel> on the image to\nschedule a relabel operation for the next time the image boots.)  This\noption disables the automatic relabeling.\n\nThe option is a no-op for guests that do not support SELinux.";
ca2a74
+    (
ca2a74
+      [ L"selinux-relabel" ],
ca2a74
+      Getopt.Set selinux_relabel_ignored,
ca2a74
+      s_"Compatibility option doing nothing"
ca2a74
+    ),
ca2a74
+    None, "This is a compatibility option that does nothing.";
ca2a74
     (
ca2a74
       [ L"sm-credentials" ],
ca2a74
       Getopt.String (
ca2a74
diff --git a/common/mlcustomize/customize_cmdline.mli b/common/mlcustomize/customize_cmdline.mli
ca2a74
index 7ee882a..7d14e78 100644
ca2a74
--- a/common/mlcustomize/customize_cmdline.mli
ca2a74
+++ b/common/mlcustomize/customize_cmdline.mli
ca2a74
@@ -103,6 +103,8 @@ and flags = {
ca2a74
       (* --password-crypto md5|sha256|sha512 *)
ca2a74
   no_selinux_relabel : bool;
ca2a74
       (* --no-selinux-relabel *)
ca2a74
+  selinux_relabel_ignored : bool;
ca2a74
+      (* --selinux-relabel *)
ca2a74
   sm_credentials : Subscription_manager.sm_credentials option;
ca2a74
       (* --sm-credentials SELECTOR *)
ca2a74
 }
ca2a74
-- 
ca2a74
2.31.1
ca2a74