The setfiles call was broken by
62cee058cb116684294831c4cab20924dde93e45
because the binary policy and file context files were still using the
host path in the run arguments.
Fixes the error `Error opening
/home/user/.cache/mkosi/mkosi-workspaceb5nodee6/root/etc/selinux/targeted/policy/policy.33:
No such file or directory`
return
policy, fc, binpolicy = selinux
+ fc = Path("/buildroot") / fc.relative_to(context.root)
+ binpolicy = Path("/buildroot") / binpolicy.relative_to(context.root)
with complete_step(f"Relabeling files using {policy} policy"):
run(["setfiles", "-mFr", "/buildroot", "-c", binpolicy, fc, "/buildroot"],