It's a chunk from D26390
Introduce run_command for subprocess.check_ouput
- which logs the command execution details
- has the same behavior cross different python versions
Kills SELinux check, which would prevent the dynamic loader trick when that is enabled. Tested on Fedora it works fine.
I think it would be good to mention what version of python the behavior changed in. This will allow future maintainers to determine whether this logic can safely be removed when support for earlier python versions is dropped.