* [PATCH] doc/user_manual: mention EFI variable access and platform keyring for module signing
@ 2025-01-20 18:27 'Cetin, Gokhan' via isar-users
2025-01-21 9:40 ` 'Jan Kiszka' via isar-users
2025-02-06 7:49 ` Uladzimir Bely
0 siblings, 2 replies; 3+ messages in thread
From: 'Cetin, Gokhan' via isar-users @ 2025-01-20 18:27 UTC (permalink / raw)
To: isar-users; +Cc: quirin.gylstorff, MOESSBAUER, Felix
Enrolling MOK or importing platform keys is not possible without access to EFI variables.
Signed-off-by: Gokhan Cetin <gokhan.cetin@siemens.com>
---
doc/user_manual.md | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/doc/user_manual.md b/doc/user_manual.md
index 62d16c8c..bb8eb21b 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -1127,7 +1127,15 @@ modprobe example-module
mokutil --import /etc/sb-mok-keys/MOK/MOK.der
```
-Use the previously definded password to enroll the key, then reboot.
+Use the previously defined password to enroll the key, then reboot.
+
+If EFI variable access is disabled on kernel (due to high latencies under RT kernel),
+enrolling will result in failure `EFI variables are not supported on this system`.
+EFI variable access can be enabled by passing `efi=runtime` kernel parameter.
+
+Similarly, in cases where EFI variables are not supported, the system will not be able
+to import the keys defined on the platform in the kernel platform keyring. This will also
+result in kernel modules not being verified if they are signed with one of these platform keys.
**Boot self-signed image**:
--
2.39.2
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/PRAPR10MB54224613640C377A55D8D49580E72%40PRAPR10MB5422.EURPRD10.PROD.OUTLOOK.COM.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] doc/user_manual: mention EFI variable access and platform keyring for module signing
2025-01-20 18:27 [PATCH] doc/user_manual: mention EFI variable access and platform keyring for module signing 'Cetin, Gokhan' via isar-users
@ 2025-01-21 9:40 ` 'Jan Kiszka' via isar-users
2025-02-06 7:49 ` Uladzimir Bely
1 sibling, 0 replies; 3+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2025-01-21 9:40 UTC (permalink / raw)
To: Cetin, Gokhan, isar-users, MOESSBAUER, Felix
Cc: quirin.gylstorff, Florian Bezdeka
On 20.01.25 19:27, 'Cetin, Gokhan' via isar-users wrote:
> Enrolling MOK or importing platform keys is not possible without access to EFI variables.
>
> Signed-off-by: Gokhan Cetin <gokhan.cetin@siemens.com>
> ---
> doc/user_manual.md | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index 62d16c8c..bb8eb21b 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -1127,7 +1127,15 @@ modprobe example-module
> mokutil --import /etc/sb-mok-keys/MOK/MOK.der
> ```
>
> -Use the previously definded password to enroll the key, then reboot.
> +Use the previously defined password to enroll the key, then reboot.
> +
> +If EFI variable access is disabled on kernel (due to high latencies under RT kernel),
> +enrolling will result in failure `EFI variables are not supported on this system`.
> +EFI variable access can be enabled by passing `efi=runtime` kernel parameter.
> +
Not sure if you two discussed that yesterday as well, but Felix and I
did: This eventually needs to be addressed in the mainline kernel,
likely by permitting efi variable access while still blocking other
runtime services. Those are much harder to manage in a running system
than efivarfs which could simply be unmounted once the RT job starts and
remounted when it is stopped.
Jan
> +Similarly, in cases where EFI variables are not supported, the system will not be able
> +to import the keys defined on the platform in the kernel platform keyring. This will also
> +result in kernel modules not being verified if they are signed with one of these platform keys.
>
> **Boot self-signed image**:
>
--
Siemens AG, Foundational Technologies
Linux Expert Center
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/ffef2b06-343f-48b2-9675-66aeb6c77d48%40siemens.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] doc/user_manual: mention EFI variable access and platform keyring for module signing
2025-01-20 18:27 [PATCH] doc/user_manual: mention EFI variable access and platform keyring for module signing 'Cetin, Gokhan' via isar-users
2025-01-21 9:40 ` 'Jan Kiszka' via isar-users
@ 2025-02-06 7:49 ` Uladzimir Bely
1 sibling, 0 replies; 3+ messages in thread
From: Uladzimir Bely @ 2025-02-06 7:49 UTC (permalink / raw)
To: Cetin, Gokhan, isar-users
On Mon, 2025-01-20 at 18:27 +0000, 'Cetin, Gokhan' via isar-users
wrote:
> Enrolling MOK or importing platform keys is not possible without
> access to EFI variables.
>
> Signed-off-by: Gokhan Cetin <gokhan.cetin@siemens.com>
> ---
> doc/user_manual.md | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index 62d16c8c..bb8eb21b 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -1127,7 +1127,15 @@ modprobe example-module
> mokutil --import /etc/sb-mok-keys/MOK/MOK.der
> ```
>
> -Use the previously definded password to enroll the key, then reboot.
> +Use the previously defined password to enroll the key, then reboot.
> +
> +If EFI variable access is disabled on kernel (due to high latencies
> under RT kernel),
> +enrolling will result in failure `EFI variables are not supported on
> this system`.
> +EFI variable access can be enabled by passing `efi=runtime` kernel
> parameter.
> +
> +Similarly, in cases where EFI variables are not supported, the
> system will not be able
> +to import the keys defined on the platform in the kernel platform
> keyring. This will also
> +result in kernel modules not being verified if they are signed with
> one of these platform keys.
>
> **Boot self-signed image**:
>
> --
> 2.39.2
>
Applied to next, thanks.
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/bcfbe788091f0ab76b592f794fb4dbe4b6b8fca6.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-06 7:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-20 18:27 [PATCH] doc/user_manual: mention EFI variable access and platform keyring for module signing 'Cetin, Gokhan' via isar-users
2025-01-21 9:40 ` 'Jan Kiszka' via isar-users
2025-02-06 7:49 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox