Blame SOURCES/0006-deploy-Be-a-bit-more-verbose-about-SELinux-bits.patch

7a9a56
From dd194eca7272afa457541abb2d8c25f90c4f478a Mon Sep 17 00:00:00 2001
7a9a56
From: Colin Walters <walters@verbum.org>
7a9a56
Date: Mon, 28 Mar 2022 17:46:59 -0400
7a9a56
Subject: [PATCH 6/6] deploy: Be a bit more verbose about SELinux bits
7a9a56
7a9a56
Let's log when we don't find the expected CLI argument which
7a9a56
will help debug things.
7a9a56
7a9a56
(cherry picked from commit c58a4fe661d9d3bf2c515aa5605b1e094c0a62ca)
7a9a56
---
7a9a56
 src/libostree/ostree-sysroot-deploy.c | 7 +++++--
7a9a56
 1 file changed, 5 insertions(+), 2 deletions(-)
7a9a56
7a9a56
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
7a9a56
index a44721d8..404f336f 100644
7a9a56
--- a/src/libostree/ostree-sysroot-deploy.c
7a9a56
+++ b/src/libostree/ostree-sysroot-deploy.c
7a9a56
@@ -2926,9 +2926,12 @@ sysroot_finalize_selinux_policy (int deployment_dfd, GError **error)
7a9a56
                           SEMODULE_HELP_ARGC, &exit_status, &stdout, error))
7a9a56
     return FALSE;
7a9a56
   if (!g_spawn_check_exit_status (exit_status, error))
7a9a56
-    return FALSE;
7a9a56
+    return glnx_prefix_error (error, "failed to run semodule");
7a9a56
   if (!strstr(stdout, "--rebuild-if-modules-changed"))
7a9a56
-    return TRUE;
7a9a56
+    {
7a9a56
+      ot_journal_print (LOG_INFO, "semodule does not have --rebuild-if-modules-changed");
7a9a56
+      return TRUE;
7a9a56
+    }
7a9a56
 
7a9a56
   static const gchar * const SEMODULE_REBUILD_ARGV[] = {
7a9a56
     "semodule", "-N", "--rebuild-if-modules-changed"
7a9a56
-- 
7a9a56
2.31.1
7a9a56