RHEL6 – SELinux Troubleshooting II: Electric Boogaloo

So a good while back I posted an article on how to troubleshoot SELinux violations and after reviewing that article as part of a troubleshooting exercise, I realized that I left out a few details. Needless to say my original article was not as clear as it should be. Anyway I wanted to use up a few more bytes of the internet to clarify.

RHEL6 – Using Semanage and Restorecon to Modify SELinux File Contexts

Ok, semanage, when used with the fcontext argument, is used to define SELinux file contexts for file. It basically adds the new definition to the file, /etc/selinux/targeted/contexts/files/file_contexts.

RHEL6 — Troubleshooting SELinux Violations

Dear Reader: Welcome to my third and not final instalment on SELinux. The first two can be read here and here. They are exciting reads and are sure to have you on the edge of your seat. Anyway, the best way to implement SELinux sucessfully is to know how to troubleshoot when things aren't going your way. If you panic at the first sign of trouble, you are just going to end up turning off SELinux and not reap the rich rewards that it will bring you in life. Now that I have convinced you to run SELinux lets get started.