Project

General

Profile

« Previous | Next » 

Revision eb34a92f

Added by Lukas Zapletal about 8 years ago

fixes #13502 - introduced has_docker definition

We fail hard when docker is not present because it was part of core policy
and was moved to separate package in RHEL 7.2. We might change this to a
warning in future major release of RHEL.

View differences:

foreman.te
policy_module(foreman, @@VERSION@@)
#######################################
#
# Definitions
#
# This defines set of special (unused) types which are used for easier detection
# what definitions the policy was compiled with. Use seinfo -tTYPE to find
# particular flag.
#
ifdef(`has_docker', `
type foreman_has_docker_defined_t;
')
#######################################
#
# Declarations
......
optional_policy(`
tunable_policy(`passenger_can_connect_docker_unix',`
ifndef(`distro_rhel6', `
ifdef(`has_docker', `
docker_stream_connect(passenger_t)
')
')

Also available in: Unified diff