shim is often used as part of the EFI boot chain with Linux kernels. shim has an option to disable all verification of binaries it loads. This can be performed by end-user using mokutil / mokmanager EFI app, which set BootServices only variable MokSBState. shim honors that, and mirrors it as readonly MokSBStateRT for the post-ExitBootService access. Thus presense of MokSBStateRT is an indicator that shim was used during boot chain. Some OEM vendors are known to set MokSBState variable, without user having done so. When verification is disabled, one should assume secureboot is insecure, because any EFI binary was allowed to run, including but not limited to unsigned or revoked: - grub - systemd-boot - UKI - linux kernel Linux kernel also has code to check this variable, and correctly report that Secure Boot is disabled, see: - https://github.com/torvalds/linux/blob/3a8660878839faadb4f1a6dd72c3179c1df56787/drivers/firmware/efi/libstub/secureboot.c#L57 With this change bootctl output changes like this: ```diff System: Firmware: n/a (n/a) Firmware Arch: x64 - Secure Boot: enabled (user) + Secure Boot: disabled (insecure) TPM2 Support: yes Measured UKI: no Boot into FW: supported ``` This implementation is trying to mimic mokutil behaviour like this one: ``` $ mokutil --sb-state SecureBoot enabled SecureBoot validation is disabled in shim ``` As well as the linux kernel behavior of: ``` $ journalctl -b | grep 'Secure boot disabled' kernel: Secure boot disabled ``` Note that MokSBState is extended into PCR7 as well as also into PCR14. For more details see https://github.com/rhboot/shim/blob/main/README.tpm
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS
