# SELinux configuration

###############################################################################
# <<< Any RedHat-originated OS
{% if grains['os_platform_type'].startswith('rhel') or grains['os_platform_type'].startswith('fc') %}

selinux_config:
    file.managed:
        - name: /etc/selinux/config
        - source: salt://common/selinux/config
        - user: root
        - group: root
        - mode: 644
    cmd.run:
        - name: "setenforce 0"

{% endif %}
# >>>
###############################################################################


# SELinux configuration

###############################################################################
# <<< Any RedHat-originated OS
{% if grains['os_platform_type'].startswith('rhel') or grains['os_platform_type'].startswith('fc') %}

selinux_config:
    file.managed:
        - name: /etc/selinux/config
        - source: salt://common/selinux/config
        - user: root
        - group: root
        - mode: 644
    cmd.run:
        # OBS-1873: Redefine PATH to include where `ldconfig` may be.
        - name: "PATH=$PATH:/usr/sbin setenforce 0"

{% endif %}
# >>>
###############################################################################


Redefine PATH to include cmd location
OBS-1873: Redefine PATH to include cmd location

uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states