Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Already signed file doesn't appear in database, can't add it either #359

Closed
Syndace opened this issue Aug 12, 2024 · 4 comments
Closed

Already signed file doesn't appear in database, can't add it either #359

Syndace opened this issue Aug 12, 2024 · 4 comments

Comments

@Syndace
Copy link

Syndace commented Aug 12, 2024

I installed a new kernel and apparently due to some automated hook during installation, the vmlinuz file is signed but not in the database. sbctl list-files does not list the vmlinuz file and running sbctl sign -s /boot/vmlinuz tells me that the file is already signed but doesn't add it to the database either.

Suggestion: make sbctl sign -s add files to the database even if they are already signed.

Thanks for this amazing tool <3

@Foxboron
Copy link
Owner

Please test this change #360

@Syndace
Copy link
Author

Syndace commented Aug 12, 2024

That branch fails to build for me, the full output of make is:

a2x --no-xmllint --asciidoc-opts="-f docs/asciidoc.conf" -d manpage -f manpage -D docs docs/sbctl.8.txt
a2x --no-xmllint --asciidoc-opts="-f docs/asciidoc.conf" -d manpage -f manpage -D docs docs/sbctl.conf.5.txt
go build -ldflags="-X github.com/foxboron/sbctl.Version=0.15.4.4.gfe847c1" -o sbctl ./cmd/sbctl
# github.com/foxboron/sbctl
./keys.go:104:28: cannot use inputBinary (variable of type *authenticode.PECOFFBinary) as io.ReaderAt value in argument to kh.SignFile: *authenticode.PECOFFBinary does not implement io.ReaderAt (missing method ReadAt)
make: *** [Makefile:28: sbctl] Error 1

go version go1.22.6 linux/amd64

The master branch builds fine.

@Foxboron
Copy link
Owner

Woops, sorry. Fixed :)

@Syndace
Copy link
Author

Syndace commented Aug 12, 2024

Thanks, works now! The file is added to the database :)

@Syndace Syndace closed this as completed Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants