Project

General

Profile

Bug #6979

Policy does not load on EL7 due to consoletype_exec_t dependency

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

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
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

Associated revisions

Revision 7a59c903 (diff)
Added by Lukas Zapletal over 6 years ago

Fixes #6013, #6014, #6979 - changes for RHEL7

History

#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.

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

#3 Updated by Anonymous over 6 years ago

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

#4 Updated by Dominic Cleal over 6 years ago

  • Target version set to 1.7.5

Also available in: Atom PDF