From aa635bf559a5f847d061648ecb9486263195f8f8 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 1 Dec 2023 15:05:40 -0500 Subject: [PATCH] sysroot: Expose deployment runner outside of selinux We will use it in e.g. s390x zipl backend. --- src/libostree/ostree-sysroot-deploy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index 7648f299..8f93d4ab 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -3151,7 +3151,6 @@ get_var_dfd (OstreeSysroot *self, int osdeploy_dfd, OstreeDeployment *deployment return glnx_opendirat (base_dfd, base_path, TRUE, ret_fd, error); } -#ifdef HAVE_SELINUX static void child_setup_fchdir (gpointer data) { @@ -3245,6 +3244,7 @@ _ostree_sysroot_run_in_deployment (int deployment_dfd, const char *const *bwrap_ (gpointer)(uintptr_t)deployment_dfd, stdout, NULL, exit_status, error); } +#ifdef HAVE_SELINUX /* * Run semodule to check if the module content changed after merging /etc * and rebuild the policy if needed. -- 2.30.2