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

[202211] Add Secure Boot Kernel configuration backport #316

Merged
merged 3 commits into from
May 10, 2023

Commits on May 4, 2023

  1. 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 <sarcot@microsoft.com>
    saiarcot895 authored and DavidZagury committed May 4, 2023
    Configuration menu
    Copy the full SHA
    76b8795 View commit details
    Browse the repository at this point in the history
  2. 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 <sarcot@microsoft.com>
    saiarcot895 authored and DavidZagury committed May 4, 2023
    Configuration menu
    Copy the full SHA
    d7be69a View commit details
    Browse the repository at this point in the history
  3. Add Secure Boot Kernel configuration (sonic-net#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 <sarcot@microsoft.com>
    2 people authored and DavidZagury committed May 4, 2023
    Configuration menu
    Copy the full SHA
    9845962 View commit details
    Browse the repository at this point in the history