Let's take a look at SELinux tools.
Two of the main tools that we can use to help manage SELinux are
chcon command helps to change the SELinux context or TYPE of what will most often be a single or perhaps sometimes a few files that can be referenced easily together with some form of wildcard. The
restorecon command can be used to reset a file or directory and its contents to their default SELinux context. These default settings for directories are stored in the
grep, we can search for
httpd_sys_content_t, whereas in the output, we should see the default label for files under
/var/www. This is the directory were we would expect ...