shared/selinux-util: rework switching of the getenforce() function
The approach with function pointer was neat, but it gets in the way when we want to resolve the symbol dynamically: static initialization is not possible. It also makes the code more complicated than necessary. In this case, a simple boolean is sufficient.
Loading
Please register or sign in to comment