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

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