-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202205] Add Secure Boot Kernel configuration (#310)
* Fix setting a config with an already-existing conflicting value Fix setting a config value in kconfig-inclusions when there's already a conflicting existing value in defconfig. For example, setting CONFIG_SYSTEM_TRUSTED_KEYS would have no effect, because there would already be a setting for this specified by Debian's default config. With this, it _might_ be possible to remove the need for kconfig-force-inclusions, but that still needs to be checked. Signed-off-by: Saikrishna Arcot <[email protected]> * Support verifying the value of strings (and not just y/m/n settings) Becuase of kpatch-inclusions having quotes around the string, but the value from `scripts/config` having the quotes stripped, the comparison fails due to one side having quotes but the other side not having quotes. This effectively adds support for setting string kconfigs in kconfig-inclusion. Signed-off-by: Saikrishna Arcot <[email protected]> * Add Secure Boot Kernel configuration (#298) * [secure boot]Add Linux Kernel configuration to support Secure Boot feature & Secure warmboot * [secure boot]Fix few typos * [secure boot]Fix Secure boot build flag condition by adding an extra defined verification * [secure boot]Remove WA after the fix in commit 5717c5d. The flow now will modify the kconfig-inclusions/exclusions file if the Secure Boot is enabled only. * [secure boot]Add secure boot kernel config by using kconfig-secure-boot-exclusions and patch/kconfig-secure-boot-inclusions files with manage-config. * [secure boot]removed comment, rename certificate with the name of the default debian key path. * [secure boot]Fix equal condition and add input file validation to certificate * [secure boot]Add signature force flag in kernel config, to force kernel module verification --------- Co-authored-by: Saikrishna Arcot <[email protected]> --------- Signed-off-by: Saikrishna Arcot <[email protected]> Co-authored-by: Saikrishna Arcot <[email protected]> Co-authored-by: davidpil2002 <[email protected]>
- Loading branch information
1 parent
49d2a42
commit 836aedf
Showing
4 changed files
with
157 additions
and
67 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[common] | ||
|
||
[amd64] | ||
CONFIG_MODULE_SIG_SHA256 | ||
# For mellanox | ||
CONFIG_SECURITY_LOCKDOWN_LSM | ||
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY | ||
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE | ||
CONFIG_LOCK_DOWN_IN_EFI_SECURE_BOOT | ||
|
||
[arm64] | ||
CONFIG_MODULE_SIG_SHA256 | ||
# For mellanox | ||
CONFIG_SECURITY_LOCKDOWN_LSM | ||
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY | ||
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE | ||
CONFIG_LOCK_DOWN_IN_EFI_SECURE_BOOT | ||
|
||
[armhf] | ||
|
||
[marvell-armhf] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[common] | ||
|
||
[amd64] | ||
CONFIG_SYSTEM_TRUSTED_KEYS="debian/certs/debian-uefi-certs.pem" | ||
CONFIG_MODULE_SIG_HASH="sha512" | ||
CONFIG_MODULE_SIG_SHA512=y | ||
CONFIG_KEXEC_SIG_FORCE=y | ||
CONFIG_MODULE_SIG_FORCE=y | ||
|
||
[arm64] | ||
CONFIG_SYSTEM_TRUSTED_KEYS="debian/certs/debian-uefi-certs.pem" | ||
CONFIG_MODULE_SIG_HASH="sha512" | ||
CONFIG_MODULE_SIG_SHA512=y | ||
CONFIG_KEXEC_SIG_FORCE=y | ||
CONFIG_MODULE_SIG_FORCE=y | ||
|
||
[armhf] | ||
|
||
[marvell-armhf] |