Policy does not load on EL7 due to consoletype_exec_t dependency
On my RHEL7 system, policy does not load at all. The reason is hidden, because the scriplet silently continues. We should fail on errors (only relabel should silently work).
[root@seven policy]# foreman-selinux-enable libsepol.print_missing_requirements: foreman's global requirements were not met: type/attribute consoletype_exec_t (No such file or directory). libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory). ValueError: Could not commit semanage transaction ValueError: Type elasticsearch_port_t is invalid, must be a port type
#1 Updated by Lukas Zapletal over 6 years ago
#2 Updated by Lukas Zapletal over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Lukas Zapletal
I've confirmed with Mirek that this macro was removed from RHEL7. Optional block should do it.