-
Notifications
You must be signed in to change notification settings - Fork 549
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
Enable signature verification of kexec kernel and use new Mariner Trusted Base CA in trusted keyring #10961
Enable signature verification of kexec kernel and use new Mariner Trusted Base CA in trusted keyring #10961
Changes from all commits
4802eda
2f29574
cb253a7
1a3a0af
1c1727c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
Summary: Signed Linux Kernel for %{buildarch} systems | ||
Name: kernel-signed-%{buildarch} | ||
Version: 6.6.57.1 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
License: GPLv2 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -145,6 +145,9 @@ echo "initrd of kernel %{uname_r} removed" >&2 | |
%exclude /module_info.ld | ||
|
||
%changelog | ||
* Tue Nov 05 2024 Chris Co <[email protected]> - 6.6.57.1-3 | ||
- Bump release to match kernel | ||
|
||
* Wed Oct 30 2024 Thien Trung Vuong <[email protected]> - 6.6.57.1-2 | ||
- Bump release to match kernel | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Summary: Signed Unified Kernel Image for %{buildarch} systems | ||
Name: kernel-uki-signed-%{buildarch} | ||
Version: 6.6.57.1 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
License: GPLv2 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -68,6 +68,9 @@ popd | |
/boot/efi/EFI/Linux/vmlinuz-uki-%{kernelver}.efi | ||
|
||
%changelog | ||
* Tue Nov 05 2024 Chris Co <[email protected]> - 6.6.57.1-3 | ||
- Bump release to match kernel | ||
|
||
* Wed Oct 30 2024 Thien Trung Vuong <[email protected]> - 6.6.57.1-2 | ||
- Bump release to match kernel | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
Summary: Linux API header files | ||
Name: kernel-headers | ||
Version: 6.6.57.1 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
License: GPLv2 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -75,6 +75,9 @@ done | |
%endif | ||
|
||
%changelog | ||
* Tue Nov 05 2024 Chris Co <[email protected]> - 6.6.57.1-3 | ||
- Bump release to match kernel | ||
|
||
* Wed Oct 30 2024 Thien Trung Vuong <[email protected]> - 6.6.57.1-2 | ||
- Bump release to match kernel | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIGtjCCBJ6gAwIBAgITMwAAAAJjlHB6Ftnx2gAAAAAAAjANBgkqhkiG9w0BAQ0F | ||
ADBaMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9u | ||
MSswKQYDVQQDEyJNaWNyb3NvZnQgTWFyaW5lciBSU0EgUm9vdCBDQSAyMDIzMB4X | ||
DTIzMDIxNjE5MzkwMloXDTM4MDIwOTIxMjU1M1owYDELMAkGA1UEBhMCVVMxHjAc | ||
BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjExMC8GA1UEAxMoTWFyaW5lciBU | ||
cnVzdGVkIEJhc2UgUlNBIENvZGUgU2lnbmluZyBDQTCCAiIwDQYJKoZIhvcNAQEB | ||
BQADggIPADCCAgoCggIBAL+8TFnwSX6pE1J6Eb4fdVJy0pLmFrY1G8oqxfPqY0l0 | ||
rezoei1p8hZrPAsk1l/lp+BIDrYl/0TiZOSkVBMod569/JDntohvjycZtCKK+9PY | ||
MophsyD5XvsK7xNaRixxTTOLJ561iKQqny29bJNgO/N909s9pXFa1chQKWm3Ib8I | ||
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jcnQwDQYJKoZIhvcN | ||
AQENBQADggIBAGCiLo+kLmHETBNIjwNBCpRyamuzfXjG54bMYrS0kPjAWD8vaxA4 | ||
GzaXyM/yk2q50xmEbRdDlhfdk/PkmYOFTvI+4Dd33kltMCy2/lwf1Ci8XIlYAH/e | ||
IiO4lKqIk2Dbfn2eMCMeFFx0BQ0zvxHJYUMWz/kqdTxR57LZclBUGPn+Q/2pDZYf | ||
uXGsS1rQqFBV6yxSgDLAAO9AuBvz32rwlGyichrufHEM1+YfjP8w6wpi0u/JHTeq | ||
A6zFshkXxXQYL7R8IjlCUVWIG9vBA0YgdcaYXY5MT1WctMcWCCu12gWtU3fOC86X | ||
rf+A++UtCYXAL1h4g0YOpZIL6LRh7CiR5Kh7cw9ylYv93+YESQHY2VAwCs+j/xRe | ||
xkv5oWRGkzAqESSv0iJfZg7DzvyE+9XbIYKGoS2NrPyGCStZsXl7B3QpA4dAvj0o | ||
ye5YZXbFtIgHS4uGyUYvEYYedNC4/ujZ7tcBvxKB3BzKJry7MkLtUJhfqQnVDFkY | ||
8wpy24yem9IDR0n2Ua1a9/kbmxDT+lJ4q7fMxPJf2QnTkdQXSuNejz6N4yUqiX22 | ||
2HLmkDFdheq2hMY0oi5PkivsnYn7b4sDclyuen04BFBIwfy0RwRSWEfzwTfdrGT6 | ||
V/XT/3n9twDIFZyK8oRjUlwo0GAiq8r0uwPOKnLQPpKJpWC4ICs1LjkB | ||
-----END CERTIFICATE----- |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,7 +296,9 @@ CONFIG_KEXEC_CORE=y | |
CONFIG_HAVE_IMA_KEXEC=y | ||
# CONFIG_KEXEC is not set | ||
CONFIG_KEXEC_FILE=y | ||
# CONFIG_KEXEC_SIG is not set | ||
CONFIG_KEXEC_SIG=y | ||
# CONFIG_KEXEC_SIG_FORCE is not set | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only available on x86: https://github.com/microsoft/CBL-Mariner-Linux-Kernel/blob/rolling-lts/mariner-3/6.6.57.1/arch/x86/Kconfig#L2038 (Note not supported on arm64: https://github.com/microsoft/CBL-Mariner-Linux-Kernel/blob/rolling-lts/mariner-3/6.6.57.1/arch/arm64/Kconfig) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clarification: for this PR we are simply enabling kexec signature validation as an option and not forcing for now |
||
CONFIG_KEXEC_BZIMAGE_VERIFY_SIG=y | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
CONFIG_CRASH_DUMP=y | ||
CONFIG_CRASH_HOTPLUG=y | ||
CONFIG_CRASH_MAX_MEMORY_RANGES=8192 | ||
|
@@ -7697,7 +7699,7 @@ CONFIG_X509_CERTIFICATE_PARSER=y | |
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not set | ||
CONFIG_PKCS7_MESSAGE_PARSER=y | ||
# CONFIG_PKCS7_TEST_KEY is not set | ||
# CONFIG_SIGNED_PE_FILE_VERIFICATION is not set | ||
CONFIG_SIGNED_PE_FILE_VERIFICATION=y | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set | ||
|
||
# | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
Summary: Unified Kernel Image | ||
Name: kernel-uki | ||
Version: 6.6.57.1 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
License: GPLv2 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -70,6 +70,9 @@ cp %{buildroot}/boot/vmlinuz-uki-%{kernelver}.efi %{buildroot}/boot/efi/EFI/Linu | |
/boot/efi/EFI/Linux/vmlinuz-uki-%{kernelver}.efi | ||
|
||
%changelog | ||
* Tue Nov 05 2024 Chris Co <[email protected]> - 6.6.57.1-3 | ||
- Bump release to match kernel | ||
|
||
* Wed Oct 30 2024 Thien Trung Vuong <[email protected]> - 6.6.57.1-2 | ||
- Remove noxsaves parameter from cmdline | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
Summary: Linux Kernel | ||
Name: kernel | ||
Version: 6.6.57.1 | ||
Release: 2%{?dist} | ||
Release: 3%{?dist} | ||
License: GPLv2 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -40,7 +40,7 @@ Source0: https://github.com/microsoft/CBL-Mariner-Linux-Kernel/archive/ro | |
Source1: config | ||
Source2: config_aarch64 | ||
Source3: sha512hmac-openssl.sh | ||
Source4: cbl-mariner-ca-20211013.pem | ||
Source4: azurelinux-ca-20230216.pem | ||
Source5: cpupower | ||
Source6: cpupower.service | ||
Patch0: 0001-add-mstflint-kernel-%{mstflintver}.patch | ||
|
@@ -407,6 +407,10 @@ echo "initrd of kernel %{uname_r} removed" >&2 | |
%{_sysconfdir}/bash_completion.d/bpftool | ||
|
||
%changelog | ||
* Tue Nov 05 2024 Chris Co <[email protected]> - 6.6.57.1-3 | ||
- Enable kexec signature verification | ||
- Introduce new azurelinux-ca-20230216.pem | ||
|
||
* Wed Oct 30 2024 Thien Trung Vuong <[email protected]> - 6.6.57.1-2 | ||
- UKI: remove noxsaves parameter from cmdline | ||
|
||
|
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.
Kconfig