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.
  • Loading branch information
cgwalters committed Mar 28, 2022
1 parent edb4f38 commit c58a4fe
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 c58a4fe

Please sign in to comment.