From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage SELinux for database services

Manage SELinux for database services

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Manage SELinux for database services

- [Instructor] Due to the nature of databases used for websites, the security has to be tight to keep the data they contain from being exploited. On Enterprise Linux 7, SELinux is used for this purpose. The MariaDB server runs in a security context and their rules and Booleans to control what the service can do, and to what. Let's take a look at the security context that the MariaDB service runs as. Type in ps space dash capital A capital Z space pipe space grep space mariadb and hit enter. We can see that there isn't a mariadb service listed. Let's run it again and check for mySQL. Bring your line back, and change mariadb to mysql and hit enter. We can see that there is a mysqld service as well as a mysqld underscore safe service. Looking at the third section of the leftmost column, we can see that the mysqld service is running as the mysqld underscore t type and the mysqld underscore safe service is running as the mysqld underscore safe underscore t type. Now let's take a look at…

Contents