What is SELinux? | SELinux Commands
This video answers the questions what is SELinux and explains the various SELinux commands you should know. It breaks down the 3 modes of SELinux.
1. Enforcing
2. Permissive
3. Disabled
I also go into why people change SELinux modes and which distribution have SELinux Enforcing by default. SELinux basically breaks down all processes into labels and assigns them independent privileges based on the SELinux label.
Commands:
Check SELinux status
# sestatus OR # getenforce
Temporarily enforce SELinux
# setenforce 1
Permanently change SELinux
# nano /etc/selinux/config
---CHANGE--- SELinux=disabled
Check if it is blocking anything
# ausearch -m AVC,USER_AVC -ts recent
Keeping SELinux enforcing or permissive
Many companies do not take the time to make their application SELinux compatible and if you leave it enabled you will probably need to do ome additional troubleshooting with the "setroubleshoot" command.
Also, I highly recommend reading the System Administrator Guide to SELinux from opensource.com if you want to use it.
https://opensource.com/article/18/7/sysadmin-guide-selinux
Support My Work
-----------------------------------------------------------------------------------
►► Get Updates, Launch Announcements and More ➜ https://www.cttstore.com/newsletter
►► Chris Titus Tech Digital Downloads ➜ https://www.cttstore.com/downloads
►► Product and Service Recommendations ➜ https://christitus.com/recommendations
►► My YouTube Gear and Computers ➜ https://www.amazon.com/shop/christitustech
Other Places to Find Me
-----------------------------------------------------------------------------------
►► Titus Tech Talk ➜ https://www.youtube.com/c/TitusTechTalk
►► Titus Tech Gaming ➜ https://www.youtube.com/c/TitusTechGaming
►► Chris Titus Fitness ➜ https://www.youtube.com/@christitusfitness
►► Twitch ➜ https://www.twitch.tv/christitustech
►► Twitter ➜ https://twitter.com/christitustech
DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps supports the channel and allows us to continue to make videos like this. Thank you for your support!