summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jonathan@jlebon.com>2023-02-17 16:47:04 -0500
committerGitHub <noreply@github.com>2023-02-17 16:47:04 -0500
commit4f87e8b6efa395fdf7cc24c6d7e7e0e12b0be0e9 (patch)
tree7cf3d84c12b4eeff8e8c7a031237dfcc1484fbaf
parentc2974d0b35f9bf53d7b4e4b0adef74cda2fc5cda (diff)
parentf0c3d09618edc4950a3f06af4f829525ba6b840f (diff)
downloadostree-4f87e8b6efa395fdf7cc24c6d7e7e0e12b0be0e9.tar.gz
Merge pull request #2755 from cgwalters/use-new-selinux-arg
-rw-r--r--src/libostree/ostree-sysroot-deploy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
index cd191d39..9c70bcd5 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -2981,7 +2981,7 @@ sysroot_finalize_selinux_policy (int deployment_dfd, GError **error)
return TRUE;
/*
- * Skip the SELinux policy refresh if the --rebuild-if-modules-changed
+ * Skip the SELinux policy refresh if the --refresh
* flag is not supported by semodule.
*/
static const gchar * const SEMODULE_HELP_ARGV[] = {
@@ -2993,14 +2993,14 @@ sysroot_finalize_selinux_policy (int deployment_dfd, GError **error)
return FALSE;
if (!g_spawn_check_exit_status (exit_status, error))
return glnx_prefix_error (error, "failed to run semodule");
- if (!strstr(stdout, "--rebuild-if-modules-changed"))
+ if (!strstr(stdout, "--refresh"))
{
- ot_journal_print (LOG_INFO, "semodule does not have --rebuild-if-modules-changed");
+ ot_journal_print (LOG_INFO, "semodule does not have --refresh");
return TRUE;
}
static const gchar * const SEMODULE_REBUILD_ARGV[] = {
- "semodule", "-N", "--rebuild-if-modules-changed"
+ "semodule", "-N", "--refresh"
};
static const gsize SEMODULE_REBUILD_ARGC = sizeof (SEMODULE_REBUILD_ARGV) / sizeof (*SEMODULE_REBUILD_ARGV);