How do you determine if in secure boot mode from a static driver/module?
From: David F.
Date: Tue Jun 22 2021 - 11:43:55 EST
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.