From the course: Linux: Firewalls and SELinux
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Disabling and reenabling SELinux - Linux Tutorial
From the course: Linux: Firewalls and SELinux
Disabling and reenabling SELinux
- [Instructor] Disabling and re-enabling SELinux is here at the very end of the course because it is really something you don't want to do unless you don't need your server for a little while. It takes time, and while it is doing its thing, you don't want to be using the server, and it will require a couple of restarts after, just to be sure that everything is working appropriately. So, let's go through this. We're going to do this now, and you're going to follow along with me. So, when SELinux is disabled, SELinux policy is not loaded at all. It's not enforced, and messages are not logged. When you re-enable SELinux after a long period of it being off, you start it back up in permissive mode, not enforcing mode, permissive mode, so it doesn't just start misbehaving based on all the extended attributes it cannot find. So the first thing we're going to do is we're going to configure SELinux as disabled, and we're going to do that in the ETC SELinux config file. Okay, so, let's just do…