Copied to clipboard

getenforce

`getenforce` command line is used to display the execution mode of SELinux.

Example

  • Check the execution mode of SELinux:

    getenforce
    
  • List current supported context types defined in the SELinux policy:

    getenforce -L
    
  • Display all context types defined in the SELinux policy:

    getenforce -l
    
  • Display all modules defined in the SELinux policy:

    getenforce -m
    
  • Display a module defined in the SELinux policy:

    getenforce -M
    
  • Display SELinux status information:

    getenforce -S