SELinux – Invalid Regex in /etc/selinux/targeted/contexts/files/file_context

So I have been doing my best to better understand SELinux as of late, and last night when I was practicing I ran into an issue that had me banging my head against by desk. Specifically I was playing around with the semanage command and working on defining a particular context to a directory that I had just created. However I was not exactly quite sure of the exact regex to use (or even if I needed to use a regex)

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