Giter VIP home page Giter VIP logo

Comments (8)

EvilBit avatar EvilBit commented on August 14, 2024

Oh, and by the way, thanks a lot for this great tool - finally a workable secure boot management tool :)

from sbctl.

Foxboron avatar Foxboron commented on August 14, 2024

Yolo, copy-pasted code. Thanks :)

from sbctl.

ericonr avatar ericonr commented on August 14, 2024

Interesting, my keys are 600... I wonder when the regression happened.

from sbctl.

EvilBit avatar EvilBit commented on August 14, 2024

Interesting, my keys are 600... I wonder when the regression happened.

I just traversed backwards through git blame and the permissions in SaveKey were 0644 since the initial commit.

But here the initial creation of the files was removed from CreateKey (which set 0600) and relied now on the erroneous permissions in SaveKey.

from sbctl.

EvilBit avatar EvilBit commented on August 14, 2024

Maybe the code should even check for too permissive file permissions and refuse signing in this case. Like OpenSSH enforces it for private keys.

from sbctl.

ericonr avatar ericonr commented on August 14, 2024

I think that's reasonable, but please with better error messages :p

from sbctl.

Foxboron avatar Foxboron commented on August 14, 2024

We can just do an var ErrInvalidPrivKeyPerms = errors.new("...something") and match it in main.go to give something human readable error back.

https://github.com/Foxboron/sbctl/blob/master/cmd/sbctl/main.go#L69-L78

from sbctl.

Foxboron avatar Foxboron commented on August 14, 2024

Fixed with ea325ca

from sbctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.