]> git.ipfire.org Git - thirdparty/plymouth.git/commit
plugins: splash: two-step: Secure boot check and a warning image
authorKate Hsuan <hpa@redhat.com>
Fri, 10 Jun 2022 05:52:37 +0000 (13:52 +0800)
committerKate Hsuan <hpa@redhat.com>
Thu, 11 Aug 2022 14:24:51 +0000 (22:24 +0800)
commit98cf5fa56aab95a8fbb0b2778a6d87cd8f522f4c
treec1c244fba54a96d233858608494de9e825b4edbc
parent25f0932cba0d69dbc5e8dc4ef12a2555139e1dc1
plugins: splash: two-step: Secure boot check and a warning image

Secure boot is used against several security threats when malware tries to
infect the firmware of the system. Users may inadvertently disable or
software may intentionally disable the secure boot. Consequently, the
system is running on an insecure platform with incorrect configuration. If
Plymouth could offer a warning to the user, the user could reboot and
reconfigure their system or asks for help immediately.

This work can be used to check the secure boot configuration and put a red
warning image on the screen if the secure boot is disabled. Also, this
check can be utterly disabled through the kernel parameter for testing.
If the parameter "secure_boot.warn_if_disabled=false" appears in the
kernel parameter, the secure boot check will be disabled.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
src/plugins/splash/two-step/plugin.c