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 – SELinux Modes and Contexts

SELinux, or Security-Enhanced Linux as its known by the guy who invented it, is a Linux feature that provides an additional level of security by setting rules for which processes can access which files, directories, ports, etc. Display and Modify SELinux Modes: You can use /etc/sysconfig/selinux to change the default SELinux mode at boot, and … Continue reading RHEL6 – SELinux Modes and Contexts