Commit Graph

11 Commits

Author SHA1 Message Date
Morten Linderud 05b4f88539
go.mod: Update go-uefi to latest master
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-07-22 21:11:19 +02:00
Hugo Osvaldo Barrera 95458395f1 Update some references to latest go-uefi
Current `master` of both branches cannot build together otherwise.
2021-06-12 01:45:54 +02:00
Morten Linderud 240786b7d8
Idk go modules
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-06-02 21:56:03 +02:00
Morten Linderud 7192e52fa1
keys: Move from sbsigntools to go-uefi
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-06-02 21:56:02 +02:00
Morten Linderud a738c8c2e3
Fixed gitignore and go modules
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-06-02 21:55:36 +02:00
Morten Linderud 7a4defc0c1
Added deps
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-05-30 14:43:03 +02:00
Érico Rolim 92bb91172d Improve error propagation and permission checking.
- Introduces dependency on sys/unix for unix.Access. This is necessary
only in keys.go, since we run 'sbsign' as a command and can't check if
it failed due to permissions.

- Allows removing special casing in main.go for commands that don't
require root permissions.

- ReadFileDatabase() can now return errors due to the multiple ways in
which it can fail; it also warns the user about possibly requiring root.

- ReadFileDatabase() was using the global DBPath instead of its dbpath
parameter in multiple places. This has been fixed.

- VerifyESP() can now run without root.

- SignFile() checks if it can read the DB key before running sbsign.

Signed-off-by: Érico Rolim <erico.erc@gmail.com>
2021-01-11 00:49:45 -03:00
Morten Linderud f92102ae2a
Moved from goefi to go-uefi
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-01-05 22:33:17 +01:00
Morten Linderud 59a0e5ffd6
keys: Switch from uuidgen to google/uuid
Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-06-07 00:00:45 +02:00
Morten Linderud bf45870d49
Slight modifications
Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-05-16 15:38:23 +02:00
Morten Linderud 0b5d4a46ea
Init
Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-05-03 19:41:09 +02:00