-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shim: compile time option to bypass the ExitBootServices() check
On systems where a second stage bootloader is not used, and the Linux Kernel is booted directly from shim, shim's ExitBootServices() hook can cause problems as the kernel never calls the shim's verification protocol. In this case calling the shim verification protocol is unnecessary and redundant as shim has already verified the kernel when shim loaded the kernel as the second stage loader. This functionality is disabled by default and must be enabled via the DISABLE_EBS_PROTECTION macro/define at build time. Signed-off-by: Paul Moore <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4b0a61d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsetje @vathpela
I wonder if we actually want this enabled by default.
I think this comes from the time when very early Shim+grub integrations did not have signed grub nor kernels. Then later grub & kernels did become signed. But it has become mandatory to have things signed.
These days it should not be necessary to enforce this check any more, as one can choose to chain things that may or may not participate in validation.
Without this option enabled by default we cannot do the following things:
The above actions result in one out of multiple shim protocols possibly not being used for validation. Whilst actually in fact not compromising lockdown/signing promise.
I would want to enable this option to use by default in Ubuntu UC20 & MAAS