From 8506bf494da2a6b92e8bf56d30eef734dbeef813 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Sep 2023 12:13:26 +0200 Subject: [PATCH] units: move units over to ConditionSecurity=measured-uki --- units/systemd-pcrfs-root.service.in | 3 +-- units/systemd-pcrfs@.service.in | 3 +-- units/systemd-pcrmachine.service.in | 3 +-- units/systemd-pcrphase-initrd.service.in | 3 +-- units/systemd-pcrphase-sysinit.service.in | 3 +-- units/systemd-pcrphase.service.in | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/units/systemd-pcrfs-root.service.in b/units/systemd-pcrfs-root.service.in index d7941fc1f65..11dc7471946 100644 --- a/units/systemd-pcrfs-root.service.in +++ b/units/systemd-pcrfs-root.service.in @@ -15,8 +15,7 @@ Conflicts=shutdown.target After=systemd-pcrmachine.service Before=shutdown.target ConditionPathExists=!/etc/initrd-release -ConditionSecurity=tpm2 -ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f +ConditionSecurity=measured-uki [Service] Type=oneshot diff --git a/units/systemd-pcrfs@.service.in b/units/systemd-pcrfs@.service.in index 9ada988f5bd..fbaec4b999e 100644 --- a/units/systemd-pcrfs@.service.in +++ b/units/systemd-pcrfs@.service.in @@ -16,8 +16,7 @@ Conflicts=shutdown.target After=%i.mount systemd-pcrfs-root.service Before=shutdown.target ConditionPathExists=!/etc/initrd-release -ConditionSecurity=tpm2 -ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f +ConditionSecurity=measured-uki [Service] Type=oneshot diff --git a/units/systemd-pcrmachine.service.in b/units/systemd-pcrmachine.service.in index 9088a66acff..fb7d3ce601f 100644 --- a/units/systemd-pcrmachine.service.in +++ b/units/systemd-pcrmachine.service.in @@ -14,8 +14,7 @@ DefaultDependencies=no Conflicts=shutdown.target Before=sysinit.target shutdown.target ConditionPathExists=!/etc/initrd-release -ConditionSecurity=tpm2 -ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f +ConditionSecurity=measured-uki [Service] Type=oneshot diff --git a/units/systemd-pcrphase-initrd.service.in b/units/systemd-pcrphase-initrd.service.in index 357c7c58696..b337d602bad 100644 --- a/units/systemd-pcrphase-initrd.service.in +++ b/units/systemd-pcrphase-initrd.service.in @@ -14,8 +14,7 @@ DefaultDependencies=no Conflicts=shutdown.target initrd-switch-root.target Before=sysinit.target cryptsetup-pre.target cryptsetup.target shutdown.target initrd-switch-root.target systemd-sysext.service ConditionPathExists=/etc/initrd-release -ConditionSecurity=tpm2 -ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f +ConditionSecurity=measured-uki [Service] Type=oneshot diff --git a/units/systemd-pcrphase-sysinit.service.in b/units/systemd-pcrphase-sysinit.service.in index 5ca986fdf73..08f73973bee 100644 --- a/units/systemd-pcrphase-sysinit.service.in +++ b/units/systemd-pcrphase-sysinit.service.in @@ -15,8 +15,7 @@ Conflicts=shutdown.target After=sysinit.target Before=basic.target shutdown.target ConditionPathExists=!/etc/initrd-release -ConditionSecurity=tpm2 -ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f +ConditionSecurity=measured-uki [Service] Type=oneshot diff --git a/units/systemd-pcrphase.service.in b/units/systemd-pcrphase.service.in index 88d41c2c5d5..c94ad756d40 100644 --- a/units/systemd-pcrphase.service.in +++ b/units/systemd-pcrphase.service.in @@ -13,8 +13,7 @@ Documentation=man:systemd-pcrphase.service(8) After=remote-fs.target remote-cryptsetup.target Before=systemd-user-sessions.service ConditionPathExists=!/etc/initrd-release -ConditionSecurity=tpm2 -ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f +ConditionSecurity=measured-uki [Service] Type=oneshot