Merge ~juliank/grub/+git/ubuntu:juliank/check-signed-kernels into ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu
Proposed by
Julian Andres Klode
Status: | Merged |
---|---|
Merged at revision: | c42ceff265d3b79295c139e9e795d646c045f05a |
Proposed branch: | ~juliank/grub/+git/ubuntu:juliank/check-signed-kernels |
Merge into: | ~ubuntu-core-dev/grub/+git/ubuntu:ubuntu |
Diff against target: |
166 lines (+123/-0) 5 files modified
debian/changelog (+8/-0) debian/grub-check-signatures (+94/-0) debian/grub-common.install.in (+1/-0) debian/postinst.in (+4/-0) debian/templates.in (+16/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Needs Fixing | ||
Review via email:
|
Commit message
Check that kernels are signed
To post a comment you must log in.
should actually check both /sys/firmware/ efi/efivars/ SecureBoot- 8be4df61- 93ca-11d2- aa0d-00e098032b 8c != 0 && /sys/firmware/ efi/efivars/ MokSBStateRT- 605dab50- e046-4300- abb6-3dd810dd8b 23 != 1. mokutil unhelpfully gives no information about the latter, so you'll need to directly read the files. See /usr/sbin/ update- secureboot- policy for examples.
*Ideally*, we would verify that the kernel is not just signed, but signed with a key that's trusted by the firmware (so: found in db, or in MokListRT). Requires a bit more code, but I believe it's warranted.