Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selinux shim does not seem to work with Fedora 29 #2

Closed
tyll opened this issue Apr 18, 2019 · 1 comment
Closed

selinux shim does not seem to work with Fedora 29 #2

tyll opened this issue Apr 18, 2019 · 1 comment

Comments

@tyll
Copy link
Contributor

tyll commented Apr 18, 2019

These commands work outside a virtualenv (created with tox)

python3 -c "import selinux; print(selinux.is_selinux_enabled())"
python -c "import selinux; print(selinux.is_selinux_enabled())"

but they do not work inside with the selinux shim installed.

python -c "import selinux; print(selinux.is_selinux_enabled())"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'selinux' has no attribute 'is_selinux_enabled'

Is there something special that needs to be done to get this working? I would like to run molecule inside a tox virtualenv but am hitting ansible/molecule#1724

@tyll
Copy link
Contributor Author

tyll commented Apr 18, 2019

#3 makes the module return a proper error in this situation.

@tyll tyll closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant