2021-06-22 15:45:42

by David F.

[permalink] [raw]
Subject: How do you determine if in secure boot mode from a static driver/module?

Hi,

Subject says it all. Given a static driver linked in to the kernel,
what is the best way for it to determine if the system has booted with
secure boot enabled? It looks like if I could access the bootparams
struct there is a "secure_boot" member set on kernel startup from EFI
handover.

Thanks.