code: def getenforce():
      '''
      Return the mode selinux is running in
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' selinux.getenforce
      '''
      _selinux_fs_path = selinux_fs_path()
      if _selinux_fs_path is None:
          return 'Disabled'
      try:
          enforce = os.path.join(_selinux_fs_path, 'enforce')
          with salt.utils.files.fopen(enforce, 'r') as _fp:
              if salt.utils.stringutils.to_unicode(_fp.readline()).strip() == '0':
                  return 'Permissive'
              else:
                  return 'Enforcing'
      except (IOError, OSError, AttributeError):
          return 'Disabledf getenforce():
      '''
      Return the mode selinux is running in
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' selinux.getenforce
      '''
      _selinux_fs_path = selinux_fs_path()
      if _selinux_fs_path is None:
          return 'Disabled'
      try:
          enforce = os.path.join(_selinux_fs_path, 'enforce')
          with salt.utils.files.fopen(enforce, 'r') as _fp:
              if salt.utils.stringutils.to_unicode(_fp.readline()).strip() == '0':
                  return 'Permissive'
              else:
                  return 'Enforcing'
      except (IOError, OSError, AttributeError):
          return 'Disabled'
docs: Return the mode selinux is running in
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' selinux.getenforce