Skip to main content

Fake selinux module that always says SELinux is off

Project description

SELinux: please lie to me! 😭

This package provides a fake selinux module. This mocked selinux module will always pretend SELinux is not enabled on the system.

But why? 😕

If your system runs SELinux and run Ansible in a virtualenv you will probably face this error:

Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!


$ virtualenv -p python3.6 venv
$ source venv/bin/active
$ pip install selinux_please_lie_to_me
$ python3 -c 'import selinux; print(f"SELinux is enabled: {selinux.is_selinux_enabled()}, (which is probably a lie 🤫)")'
SELinux is enabled: False, (which is probably a lie 🤫)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page