From the course: Linux System Engineer: Database Servers Using MariaDB

Unlock the full course today

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

MariaDB and SELinux

MariaDB and SELinux

From the course: Linux System Engineer: Database Servers Using MariaDB

Start my 1-month free trial

MariaDB and SELinux

- [Narrator] Due to the nature of the databases used for websites, the security has to be tight to keep the data they contain from being exploited. On Enterprise Linux Seven, SELinux is used for this purpose. The MariaDB server runs in a security context and there are rules and booleans to control what those servers can do and to what. Let's take a look at those security contexts 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's a mysqld service, as well as a mysqld_safe service. Looking at the third section of the left-most column, we can see that the mysqld service is running as the mysqld_t type, and the mysqld_safe service is running as the mysqld_safe_t type. Now let's take a look at the mysqld binary. Type…

Contents