Added mokutil check to detect SecureBoot status before installing #5879
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
Fixes #5871.
Adds a raw command check in the
prepare_servers
ansible role, to see if SecureBoot is enabled. If it is, the install exits early with an informative error. The check runsmokutil --sb-state
, and fails iff the output includesSecureBoot enabled
:mokutil
will error out ifnoefi
is set in kernel boot args (as it is for the current grsec kernel) - this is ignored and the check passesSecureBoot disabled
, it obviously passes :)Testing
On prod hardware,
./securedrop-admin --force install
entering the server password when promptedinstall
commandtailsconfig
, runssh mon sudo apt remove mokutil
to remove the utility from the mon server../securedrop-admin --force install
againEFI variables are not supported
messagemokutil: not found
Deployment
Deployed when workstation is updated. No implications for older systems IMO
Checklist
If you made non-trivial code changes:
Choose one of the following: