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
Release history Release notifications | RSS feed
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
Close
Hashes for selinux_please_lie_to_me-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a10ac37e97bf10edfa6728bc44c4d9cdf61bced5fafcf7286350c2ce65bf5795 |
|
MD5 | f19b5402b1b16e28c3a00adcf25c9f6d |
|
BLAKE2b-256 | 5af0006c8d3cd9d2c1c3f71fff3c1dce05609a322e44b56c5f6f72a384d48d6c |