Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shim.c: add the marco switch to allow users to choose whether the next boot loader signature failure is enforced or not when secure boot is enabled. #627

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jingshui1037
Copy link

Similar to the kernel module forced signature verification configuration (CONFIG_MODULE_SIG_FORCE), we can introduce a switch at compile time to each component of the secure boot (including shim) to allow users to choose whether to force signature verification and intercept the next-level bootloader that fails the signature verification(unsigned or signed incorrectly, etc.) according to their own needs. Of course, the default is still forced signature verification and interception. If there are only alarms rather than forced interception, you can add the CFLAGS +=-DALLOW_SECURE_BOOT_SIGNATURE_VERIFY_ERROR compilation option to the Makefile to control it.

Signed-off-by: YiLin.Li YiLin.Li@linux.alibaba.com

boot loader signature failure is enforced or not when secure boot is
enabled.

Similar to the kernel module forced signature verification configuration
(CONFIG_MODULE_SIG_FORCE), we can introduce a switch at compile time
to each component of the secure boot (including shim) to allow users
to choose whether to force signature verification and intercept the
next-level bootloader that fails the signature verification(unsigned
or signed incorrectly, etc.) according to their own needs. Of course, the
default is still forced signature verification and interception. If
there are only alarms rather than forced interception, you can add the
`CFLAGS +=-DALLOW_SECURE_BOOT_SIGNATURE_VERIFY_ERROR` compilation option
to the Makefile to control it.

Signed-off-by: YiLin.Li <YiLin.Li@linux.alibaba.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants