Code Monkey home page Code Monkey logo

Comments (4)

rndmh3ro avatar rndmh3ro commented on June 15, 2024 1

sysctl_overwrite is a variable that you can use to overwrite our sysctl-defaults, see here: https://github.com/dev-sec/ansible-collection-hardening/tree/master/roles/os_hardening#changing-sysctl-variables.
We use a dict for all sysctl-variables. If you want to overwrite a single setting in this dict, you'd normally have to overwrite the whole dict. With sysctl_overwrite it is possible to overwrite only a single parameter in the dict.

To actually st the sysctl-parameters, we already use ansible.posix.sysctl here: https://github.com/dev-sec/ansible-collection-hardening/blob/master/roles/os_hardening/tasks/sysctl.yml#L63-L72

We have the problem, that we need to define different settings in sysctl in different groups, with overlapping settings, which makes it a little bit error prone and hard to manage.

I agree here. I'd love to have a better implementation where you can set default parameters, operating-system-specific parameters and user-provided variables. If you have an idea, please let me know.

from ansible-collection-hardening.

CybotTM avatar CybotTM commented on June 15, 2024 1

Hi @rndmh3ro,

Thanks for the explanation.
And please don't get me wrong, I don't blame your code or your handling of sysctl for our problem with setting sysctl correctly. I hope it didn't sound like that.

from ansible-collection-hardening.

rndmh3ro avatar rndmh3ro commented on June 15, 2024

Closing, feel free to reopen if you need further info.

from ansible-collection-hardening.

rndmh3ro avatar rndmh3ro commented on June 15, 2024

No worries! :)

from ansible-collection-hardening.

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.