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!

Example

$ 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

selinux_please_lie_to_me-1.0.0-py2.py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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