documentation_complete: true

title: SELinux

description: |-
    SELinux is a feature of the Linux kernel which can be
    used to guard against misconfigured or compromised programs.
    SELinux enforces the idea that programs should be limited in what
    files they can access and what actions they can take.
    <br /><br />
    The default SELinux policy, as configured on {{{ full_name }}}, has been
    sufficiently developed and debugged that it should be usable on
    almost any system with minimal configuration and a small
    amount of system administrator training. This policy prevents
    system services - including most of the common network-visible
    services such as mail servers, FTP servers, and DNS servers - from
    accessing files which those services have no valid reason to
    access. This action alone prevents a huge amount of possible damage
    from network attacks against services, from trojaned software, and
    so forth.
    <br /><br />
    This guide recommends that SELinux be enabled using the
    default (targeted) policy on every {{{ full_name }}} system, unless that
    system has unusual requirements which make a stronger policy
    appropriate.
    {{% if product == "rhel8" %}}
    <br /><br />
    For more information on SELinux, see <b>{{{ weblink(link="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_selinux") }}}</b>.
    {{% elif "ol" in families %}}
    For more information on SELinux, see <b>{{{ weblink(link="https://docs.oracle.com/en/operating-systems/oracle-linux/selinux/") }}}</b>.
    {{% endif %}}

platform: system_with_kernel
