pycontribs / selinux

Pure-python selinux shim module for use in virtualenvs
MIT License
20 stars 19 forks source link

Can we change this to /usr/libexec/platform-python ? #48

Closed flybyray closed 1 year ago

flybyray commented 3 years ago

https://github.com/pycontribs/selinux/blob/321d66619ed59bec00a9dc6216ce417d7befec41/selinux/__init__.py#L76

this should work a long time ago with platform-python: https://fedoraproject.org/wiki/Changes/Platform_Python_Stack

problem: if i use a venv which is using a newer python this implementation will raise an error, because this selinux should only find the platform-python bindings and not from a newer python3.8+ on many RedHat Family systems.