95sel-ebc: Reorder PAES enforcement service

Fix the sel-ebc-paes-enforce.service to run AFTER the sysroot.mount
which prevents a TOCTOU situation.

Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Finn Callies <fcallies@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Finn Callies
2026-07-03 09:42:59 +02:00
committed by Jan Höppner
parent 8a52693acc
commit 4f9e5d7842

View File

@@ -4,7 +4,8 @@ Description=Enforce PAES encrypted root fs for SEL guests
# Ensure this runs before the handoff to the real root, if that's required:
After=cryptsetup.target
After=initrd-root-device.target
Before=sysroot.mount
After=sysroot.mount
Before=initrd-switch-root.service
# Initramfs requirement
DefaultDependencies=no