From: Daan De Meyer Date: Sun, 6 Aug 2023 10:07:50 +0000 (+0200) Subject: Do not pass environment when doing selinux relabel X-Git-Tag: v15~27^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413ffa92457fb8f9a130a1510ca9a730dbc597bf;p=thirdparty%2Fmkosi.git Do not pass environment when doing selinux relabel We don't do this for any of the other commands we run, let's not do it for selinux either. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 5eaadf71d..39f51ee2f 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1188,7 +1188,7 @@ def run_selinux_relabel(state: MkosiState) -> None: die(f"SELinux binary policy not found in {binpolicydir}") with complete_step(f"Relabeling files using {policy} policy"): - run(["setfiles", "-mFr", state.root, "-c", binpolicy, fc, state.root], env=state.config.environment) + run(["setfiles", "-mFr", state.root, "-c", binpolicy, fc, state.root]) def need_build_packages(config: MkosiConfig) -> bool: