<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="selinux-checking">
      </a>
      8.7.1 Check if SELinux is Enabled
     </h3>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045231644080">
  </a>
  <p>
   SELinux is enabled by default on some Linux distributions
      including Oracle Linux, RHEL, CentOS, and Fedora. Use the
   <span class="command">
    <strong>
     sestatus
    </strong>
   </span>
   command to determine if SELinux is
      enabled on your distribution:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting language-terminal"><div class="docs-select-all right" id="sa65472562"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">sestatus</span>
SELinux status<span class="token punctuation">:</span>                 enabled
SELinuxfs mount<span class="token punctuation">:</span>                /sys/fs/selinux
SELinux root directory<span class="token punctuation">:</span>         /etc/selinux
Loaded policy name<span class="token punctuation">:</span>             targeted
Current mode<span class="token punctuation">:</span>                   enforcing
Mode from config file<span class="token punctuation">:</span>          enforcing
Policy MLS status<span class="token punctuation">:</span>              enabled
Policy deny_unknown status<span class="token punctuation">:</span>     allowed
Memory protection checking<span class="token punctuation">:</span>     actual <span class="token punctuation">(</span>secure<span class="token punctuation">)</span>
Max kernel policy version<span class="token punctuation">:</span>      31</code></pre>
  </div>
  <p>
   If SELinux is disabled or the
   <span class="command">
    <strong>
     sestatus
    </strong>
   </span>
   command
      is not found, refer to your distribution's SELinux documentation
      for guidance before enabling SELinux.
  </p>
 </div>
 <br/>
</div>
