-
Notifications
You must be signed in to change notification settings - Fork 695
chore(kernel): fix SBAT data and addon.efi names #18598
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
base: 4.0
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
| kernel.@SBAT_SUFFIX,1,Red Hat,kernel-core,@KVER,mailto:secalert@redhat.com | ||
| kernel.@SBAT_SUFFIX,1,Microsoft,kernel-core,@KVER,https://github.com/microsoft/azurelinux/issues |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
| kernel-uki-virt-addons.@SBAT_SUFFIX,1,Red Hat,kernel-uki-virt-addons,@KVER,mailto:secalert@redhat.com | ||
| kernel-uki-virt-addons.@SBAT_SUFFIX,1,Microsoft,kernel-uki-virt-addons,@KVER,https://github.com/microsoft/azurelinux/issues | ||
|
Member
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. question(blocking): Could you remind us what the requirements for the last field are? Is it supposed to be a follow up for security issues? If that's the case, per our security guidance we shouldn't point folks toward our GitHub issues and instead toward appropriate Microsoft security response contacts. (Can we point to our SECURITY.md itself, or the MSRC website linked in the .md? If not, I suppose we could point to the email address listed in it -- secure@microsoft.com .)
Contributor
Author
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. The requirements are fairly vague: https://github.com/rhboot/shim/blob/main/SBAT.md#generation-based-revocation-metadata
RHEL/CentOS/Fedora reference the RH secalert email. Debian uses their package tracker URL. Other distros use email or their own equivalent of https://microsoft.com in the field. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
| kernel-uki-virt.@SBAT_SUFFIX,1,Red Hat,kernel-uki-virt,@KVER,mailto:secalert@redhat.com | ||
| kernel-uki-virt.@SBAT_SUFFIX,1,Microsoft,kernel-uki-virt,@KVER,https://github.com/microsoft/azurelinux/issues |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # Managed by azldev component update. Do not edit manually. | ||
| version = 1 | ||
| manual-bump = 2 | ||
| input-fingerprint = 'sha256:66be53c1264ba148acc86f57050d7265641db12cf90df3f995ea9f8ef34167c2' | ||
| input-fingerprint = 'sha256:a207fedcacfafd5c8a502eabe7165f13b75637bcffea4bb2d2b62a2a3b475609' | ||
| resolution-input-hash = 'sha256:466421704711c4fd3c71f0b2ed715a0e61d49e3e26f3a2637fee755795849c8e' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
| kernel.@SBAT_SUFFIX,1,Red Hat,kernel-core,@KVER,mailto:secalert@redhat.com | ||
| kernel.@SBAT_SUFFIX,1,Microsoft,kernel-core,@KVER,https://github.com/microsoft/azurelinux/issues |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ | |
| # When rebuilding without a version change, bump azl_pkgrelease (manual release). | ||
| # This corresponds to upstream Fedora's %{pkgrelease} macro; we use it in the | ||
| # %{specrelease} macro below instead of a hardcoded value. | ||
| %define azl_pkgrelease 3 | ||
| %define azl_pkgrelease 4 | ||
| # NVIDIA open GPU kernel module version (built as a kmod subpackage). | ||
| %define nvidia_open_version 595.58.03 | ||
|
|
||
|
|
@@ -135,6 +135,9 @@ Summary: The Linux kernel | |
| %endif | ||
|
|
||
| # RHEL/CentOS specific .SBAT entries | ||
| %if 0%{?azl4} | ||
| %global sbat_suffix azurelinux | ||
| %else | ||
| %if 0%{?centos} | ||
| %global sbat_suffix centos | ||
| %else | ||
|
|
@@ -144,6 +147,7 @@ Summary: The Linux kernel | |
| %global sbat_suffix rhel | ||
| %endif | ||
| %endif | ||
| %endif | ||
|
|
||
| # Sign modules on all arches | ||
| %global signmodules 1 | ||
|
|
@@ -170,6 +174,12 @@ Summary: The Linux kernel | |
| %endif | ||
|
|
||
| # | ||
| %if 0%{?azl4} | ||
| %define uki_addon_distro azurelinux | ||
| %else | ||
| %define uki_addon_distro %{primary_target} | ||
|
Member
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. question(non-blocking): Do you think we should be changing
Contributor
Author
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.
|
||
| %endif | ||
|
|
||
| # genspec.sh variables | ||
| # | ||
|
|
||
|
|
@@ -2912,7 +2922,7 @@ BuildKernel() { | |
|
|
||
| KernelAddonsDirOut="$KernelUnifiedImage.extra.d" | ||
| mkdir -p $KernelAddonsDirOut | ||
| python3 %{SOURCE151} %{SOURCE152} $KernelAddonsDirOut virt %{primary_target} %{_target_cpu} @uki-addons.sbat | ||
| python3 %{SOURCE151} %{SOURCE152} $KernelAddonsDirOut virt %{uki_addon_distro} %{_target_cpu} @uki-addons.sbat | ||
|
|
||
| %if %{signkernel} | ||
| %{log_msg "Sign the EFI UKI kernel"} | ||
|
|
@@ -4619,6 +4629,10 @@ fi\ | |
|
|
||
| # AZL-KMOD-FILES-ANCHOR — do not remove (kmod overlays chain here) | ||
| %changelog | ||
| * Wed Aug 26 2026 Lynsey Rydberg <lyrydber@microsoft.com> - 6.18.39-1.4 | ||
| - feat(kernel): add Azure Linux SBAT records | ||
| - fix(kernel): name UKI addons for Azure Linux | ||
|
|
||
| * Mon Aug 24 2026 Rachel Menge <rachelmenge@microsoft.com> - 6.18.39-1.3 | ||
| - chore(kernel): tidy release macros | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
| kernel-uki-virt-addons.@SBAT_SUFFIX,1,Red Hat,kernel-uki-virt-addons,@KVER,mailto:secalert@redhat.com | ||
| kernel-uki-virt-addons.@SBAT_SUFFIX,1,Microsoft,kernel-uki-virt-addons,@KVER,https://github.com/microsoft/azurelinux/issues |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md | ||
| kernel-uki-virt.@SBAT_SUFFIX,1,Red Hat,kernel-uki-virt,@KVER,mailto:secalert@redhat.com | ||
| kernel-uki-virt.@SBAT_SUFFIX,1,Microsoft,kernel-uki-virt,@KVER,https://github.com/microsoft/azurelinux/issues |
Uh oh!
There was an error while loading. Please reload this page.