Project

General

Profile

Actions

Bug #6979

closed

Policy does not load on EL7 due to consoletype_exec_t dependency

Added by Lukas Zapletal over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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
Actions #2

Updated by Lukas Zapletal over 10 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.

https://github.com/theforeman/foreman-selinux/pull/26

Actions #3

Updated by Anonymous over 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Dominic Cleal over 10 years ago

  • Target version set to 1.7.5
Actions

Also available in: Atom PDF