examples

  • setroubleshoot
  • getenforce
  • setenforce 0 # disable for current session
  • selinux chcon –reference=/usr/local/bin /opt/bin
  • semanage fcontext –add -e /usr/local/bin /opt/bin
  • restorcon -vr /opt/bin