Skip to content

Commit

Permalink
deploy: Be a bit more verbose about SELinux bits
Browse files Browse the repository at this point in the history
Let's log when we don't find the expected CLI argument which
will help debug things.

(cherry picked from commit c58a4fe)
  • Loading branch information
cgwalters committed May 4, 2022
1 parent 62e62bc commit dd194ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2926,9 +2926,12 @@ sysroot_finalize_selinux_policy (int deployment_dfd, GError **error)
SEMODULE_HELP_ARGC, &exit_status, &stdout, error))
return FALSE;
if (!g_spawn_check_exit_status (exit_status, error))
return FALSE;
return glnx_prefix_error (error, "failed to run semodule");
if (!strstr(stdout, "--rebuild-if-modules-changed"))
return TRUE;
{
ot_journal_print (LOG_INFO, "semodule does not have --rebuild-if-modules-changed");
return TRUE;
}

static const gchar * const SEMODULE_REBUILD_ARGV[] = {
"semodule", "-N", "--rebuild-if-modules-changed"
Expand Down

0 comments on commit dd194ec

Please sign in to comment.