[FFE] Update mokutil to fb6250f2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mokutil (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Potentially any Ubuntu users on UEFI systems; as mokutil is used to control from the userland the behavior of Secure Boot via shim.
New features have been introduced in mokutil that we'll want to make use of in supported releases along with the new shim updates:
- Better control of timeout for the MokManager prompts
- Exporting PK, KEK, DB, MOK keys to be used to streamline upgrades and avoid failing upgrades when custom-signed kernels are in use.
[Test case]
== Disabling timeout ==
1) Run 'sudo mokutil --timeout -1'.
2) Run 'sudo mokutil --reset' (or another command that requires user interaction in MokManager)
2) On reboot, validate that MokManager does not show a timeout screen, and instead immediately stops at the menu.
== Changing timeout ==
1) Run 'sudo mokutil --timeout 666'.
2) Run 'sudo mokutil --reset' (or another command that requires user interaction in MokManager)
2) On reboot, validate that MokManager shows a timer of 666 seconds before continuing to reboot, waiting for user input.
== Exporting keys ==
1) Run 'sudo mokutil --export --db'; 'sudo mokutil --export --kek', etc.
2) Validate that mokutil allows exporting the contents of DB, KEK, etc.
[Regression potential]
This affects the userland tool used to communicate tasks to have done by MokManager at early boot. As such, any failure to enroll certificates, to disable validation in shim, to export keys or list keys should be investigated as possible regressions caused by this update.
---
Update mokutil to a git snapshot of fb6250f2.
Changes since cca7219 (current git snapshot in cosmic):
fb6250f Update TODO
af2387a Rename export_moks as export_db_keys
4efbb0e Add support for exporting other keys
f0217e5 add new --mok argument
73c045b set list-enrolled command as default for some arguments
382ba20 Add more info to --sb-state: show when we're in SetupMode or with shim validation disabled
303ee33 Correct help: --set-timeout is really --timeout
385a7dd generate_hash() / generate_pw_hash(): don't use strlen() for strncpy bounds
c8b26c2 Add the type casting to silence the warning
summary: |
- Update mokutil to fb6250f2 + [FFE] Update mokutil to fb6250f2 |
description: | updated |
description: | updated |
tags: | added: id-5bbd25580c30e754dd2d61ed |
tags: | added: id-5bbd25580c30e754dd2d61ed |
Package builds and installs fine (see attached build log):
╭─ mtrudel@demeter …/cosmic 0.3.0+153871043 7.fb6250f- 0ubuntu1_ amd64.deb 0.3.0+153871043 7.fb6250f- 0ubuntu1_ amd64.deb ... 1538710437. fb6250f- 0ubuntu1) over (0.3.0+ 1531796165. cca7219- 0ubuntu1) ... 1538710437. fb6250f- 0ubuntu1) ...
╰─ sudo dpkg -i mokutil_
[sudo] password for mtrudel:
(Reading database ... 148467 files and directories currently installed.)
Preparing to unpack mokutil_
Unpacking mokutil (0.3.0+
Setting up mokutil (0.3.0+
Processing triggers for man-db (2.8.4-2) ...