Build failure on RHEL 7.2 - docker moved to separate package
I need reverse order of optional_policy/ifndef introduced in #11934 because it fails to build:
Compiling targeted foreman module foreman.te:413: Warning: miscfiles_read_certs() has been deprecated, please use miscfiles_read_generic_certs() instead. foreman.te":377:ERROR 'syntax error' at token 'docker_stream_connect' on line 7954: docker_stream_connect(passenger_t) #line 377 /usr/bin/checkmodule: error(s) encountered while parsing configuration /usr/bin/checkmodule: loading policy configuration from tmp/foreman.tmp make: Leaving directory `/builddir/build/BUILD/foreman-selinux-1.11.0/local-tmp-foreman' make: *** [tmp/foreman.mod] Error 1 make: *** [foreman.pp] Error 2
Updated by Lukas Zapletal almost 8 years ago
- Subject changed from Build failure on RHEL 7.2 due to optional policy block: to Build failure on RHEL 7.2 - docker moved to separate package
Docker policy was removed from RHEL 7.2 base policy and moved to docker-selinux subpackage:
The package is is extras which is enabled by default in CentOS 7.
Therefore we only need to add a build RPM dependency. For runtime this is not required as this is in optional block, therefore this will only be loaded when docker is present I believe. If this is not true, then we need to add "rhel-7-server-extras-rpms" to our installation instructions on RHEL 7.