Code Monkey home page Code Monkey logo

Comments (5)

jdauphant avatar jdauphant commented on September 23, 2024

It could be nice to detect this and don't install python-selinux on Debian if it's the case

from ansible-role-nginx.

 avatar commented on September 23, 2024

the getenforce command should do it:

getenforce reports whether SELinux is enforcing, permissive, or disabled.

so if that command doesn't exist or reports Disabled then selinux is turned off.

It seems to be Disabled , even though the manpage says disabled

from ansible-role-nginx.

exploide avatar exploide commented on September 23, 2024

There already is a built-in fact which can be used to check that. Here the relevant portion of the output of the setup module:

"ansible_selinux": {
    "config_mode": "enforcing", 
    "mode": "enforcing", 
    "policyvers": 30, 
    "status": "enabled", 
    "type": "targeted"
}

from ansible-role-nginx.

jdauphant avatar jdauphant commented on September 23, 2024

Thanks @exploide, if you can made a PR, it will be nice !

from ansible-role-nginx.

exploide avatar exploide commented on September 23, 2024

I will take a look when time allows it. Figured out I also have to address another SELinux related issue: Setting the nginx_worker_rlimit_nofile variable is forbidden unless a SELinux boolean is tweaked. Guess this can be done together.

from ansible-role-nginx.

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.