Code Monkey home page Code Monkey logo

Comments (4)

a13xp0p0v avatar a13xp0p0v commented on July 30, 2024 1

Hi @jvoisin,

The --autodetect mode is incompatible with others and requires something like this:

assert(args.config is None and
       args.cmdline is None and
       args.sysctl is None and
       args.print is None and
       args.generate is None), \
       'unexpected args'

So I think the --autodetect mode checking kconfig, cmdline, and sysctls should be implemented in separate if block, similarly to if args.print and if args.generate in the current code.

I would propose reimplementing it in the current PR and get the final --autodetect argument behavior before merging.

from kconfig-hardened-check.

a13xp0p0v avatar a13xp0p0v commented on July 30, 2024

Hi @jvoisin,

I like this idea.

I see 2 additional features for --autodetect:

  • Try using /proc/config.gz before searching in /boot/.
  • Also check the current sysctl state.

What do you think?

Thank you!

from kconfig-hardened-check.

jvoisin avatar jvoisin commented on July 30, 2024

Yup, those were on my todo-list (I should have mentioned it here tbh), but I wanted to see if you'd be interested in this before adding them.

I think I'd make sense to get this one merged, and then pile features on top of it :)

from kconfig-hardened-check.

jvoisin avatar jvoisin commented on July 30, 2024

Done in #130.

from kconfig-hardened-check.

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.