From 08d899534443e1bd4c09728d6dd12f205c47e868 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 7 Oct 2024 15:09:06 -0700 Subject: [PATCH] Use label=disable to prevent context changes --- iso/empanadas/empanadas/util/dnf_utils.py | 8 ++++---- iso/empanadas/empanadas/util/iso_utils.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 862af8e..9c3fdea 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -560,7 +560,7 @@ class RepoSync: #print(entry_name_list) for pod in entry_name_list: - podman_cmd_entry = '{} run -d -it -v "{}:{}" -v "{}:{}:z" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( + podman_cmd_entry = '{} run -d -it --security-opt label=disable -v "{}:{}" -v "{}:{}" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( cmd, self.compose_root, self.compose_root, @@ -714,7 +714,7 @@ class RepoSync: self.log.info('Spawning pods for %s' % repo) for pod in repoclosure_entry_name_list: - podman_cmd_entry = '{} run -d -it -v "{}:{}" -v "{}:{}:z" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( + podman_cmd_entry = '{} run -d -it --security-opt label=disable -v "{}:{}" -v "{}:{}" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( cmd, self.compose_root, self.compose_root, @@ -1509,7 +1509,7 @@ class RepoSync: self.log.info('Spawning pods for %s' % repo) for pod in repoclosure_entry_name_list: - podman_cmd_entry = '{} run -d -it -v "{}:{}" -v "{}:{}:z" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( + podman_cmd_entry = '{} run -d -it --security-opt label=disable -v "{}:{}" -v "{}:{}" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( cmd, self.compose_root, self.compose_root, @@ -2045,7 +2045,7 @@ class SigRepoSync: #print(entry_name_list) for pod in entry_name_list: - podman_cmd_entry = '{} run -d -it -v "{}:{}" -v "{}:{}:z" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( + podman_cmd_entry = '{} run -d -it --security-opt label=disable -v "{}:{}" -v "{}:{}" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( cmd, self.compose_root, self.compose_root, diff --git a/iso/empanadas/empanadas/util/iso_utils.py b/iso/empanadas/empanadas/util/iso_utils.py index 3ff539f..a78e130 100644 --- a/iso/empanadas/empanadas/util/iso_utils.py +++ b/iso/empanadas/empanadas/util/iso_utils.py @@ -1022,7 +1022,7 @@ class IsoBuild: checksum_list.append(latestname) for pod in entry_name_list: - podman_cmd_entry = '{} run -d -it -v "{}:{}" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( + podman_cmd_entry = '{} run -d -it --security-opt label=disable -v "{}:{}" -v "{}:{}" --name {} --entrypoint {}/{} {}'.format( cmd, self.compose_root, self.compose_root,