
This introductory module gives an overview of the topics that will be covered in this course.
What is SELinux (MAC) compared to traditional security (DAC).
SELinux adds a mandatory access control layer that operates after traditional discretionary permissions, using subject and file labels to grant or deny access.
Explore SELinux labels for httpd and ports using ls -Z and lsof, modify the httpd port from 80 to 8888, and diagnose permission denial via SELinux alert.
Pause the video to complete this brief exercise, and find the possible solution in the resources section of this module.
Which packages are needed to manage SELinux?
How to set SELinux to enforcing/permissive mode. How to disable completely.
Change the file context with chcon and restorecon to apply the httpd type recursively, showing how relabeling follows the policy and how new files inherit the parent httpd type.
Master system-wide file relabeling with the fix files on boot and the auto relabel mechanism, and learn why booting in permissive mode helps safely switch from disabled to enforcing.
Perform an optional module four exercise to relocate http log files to a personal directory, temporarily set the http_log_t context, permanently apply it with semanage fcontext, and restore to verify.
Explore how SELinux AVC denials occur and are cached, and learn to inspect them with audit log, audit search, and audit report; diagnose with journalctl.
Search the audit log's access vector cache with Audit Search, inspect var log messages for the TSS alert, and configure an unconfined sshd port to detect and solve problems.
List and toggle SELinux booleans, making temporary and permanent changes, and note reboot effects; review module six exercise and its command solutions for guidance.
Regular Linux users map to the unconfined SELinux user by default; Linux users can map to user or guest, affecting permissions, while system processes map to system_u in targeted policy.
In this module we will see how to create a custom policy for a custom application.
Thank you for taking this course and congratulations on finishing it. Contact me with any questions, remarks, or suggestions.
In this relatively short course we will cover the basic things you will run into once you activate SELinux on your system.
All modules will start with a short introduction, followed by a hands on demonstration of a couple of minutes. The average length of the videos is about 7 minutes.
By the end of this course you will hopefully feel more confident with managing SELinux.
In the Resource section you will find optional exercises as well as the complete text of the sessions.
We will start with what the function of SELinux is with regards to traditional system security and why it is not a replacement of traditional security but an addition to it.
Then we will see how to set it up and which modes SELinux can be in.
The next module will be on Labeling which is a very important feature to determine which process is allowed to access which files.
We will continue with logging and finding out why a particular action is forbidden. We will see how detect and manage that.
Also Booleans are dealt with: what are they and what is their function.
We will also discuss and demonstrate the difference and relation of Linux users vs SELinux users.
And we will finish with creating a custom SELinux policy module.
By the end of this training I hope you will feel a lot more confident when you start working on a system where SELinux is not Disabled but Enforcing.