Coder Social home page Coder Social logo

Comments (3)

dhendrix avatar dhendrix commented on May 24, 2024

This seems doable - It seems we just need to write 'x' to /proc/sysrq-trigger?

Aside from that, is there a way of determining if kernel lockdown is currently enabled so we can try disabling it before attempting to write?

from flashrom.

pgera avatar pgera commented on May 24, 2024

It seems we just need to write 'x' to /proc/sysrq-trigger?

On ubuntu at least, cat /proc/sys/kernel/sysrq returns 176, which does not allow SysRq+x by default. So the additional step of for eg. "echo "1" > /proc/sys/kernel/sysrq" is needed before SysRq+x. Overall, I think flashrom should not get into lifting lockdown. That should be left to the user and the distro. Besides, all distros may not even allow this. (That is the main point of lockdown afterall). The error message should be helpful though.

is there a way of determining if kernel lockdown is currently enabled

I am not aware, but yes, this is all that should be done I think. Detect lockdown and change the error message.

from flashrom.

guub187 avatar guub187 commented on May 24, 2024

I have the same problem with latest flashrom (v1.2). That error message is shown, but it's a bit confusing. Realized that was related to kernel lockdown. The code should be changed to display a more detailed description about this.

Also, would like to use flashrom without needing to turning off Secure Boot.

from flashrom.

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.