forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secboot: UUID generator error instead of panic
The randutil.RandomKernelUUID() used to generate a panic on failure. The process of consolidating common code used by Pebble and Snapd (e.g. randutil) highlighted the fact that an error return, as relied on by Pebble, is a more flexibie approach and allows application code to decide the severity, instead of the library function. - Make secboot unlock code to deal with an error that can now be returned from the UUID generator. - Add unit tests to cover the new error paths in the code. Signed-off-by: Fred Lotter <[email protected]>
- Loading branch information
Showing
4 changed files
with
81 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters