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
From the course: Red Hat Enterprise Linux 8 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
Database services introduction44s
-
(Locked)
Install and configure MariaDB2m 3s
-
(Locked)
Manage SELinux for database services2m 58s
-
(Locked)
Perform logical database backups4m 5s
-
(Locked)
Create a database with tables4m 37s
-
(Locked)
Restore logical database backups2m 17s
-
(Locked)
Perform simple SQL queries3m 1s
-
(Locked)
Perform logical database backups4m 5s
-
(Locked)
Restore logical database backups2m 17s
-
(Locked)
Recover the MariaDB root password2m 47s
-
(Locked)
Set the root database password2m 8s
-
-
-
-
-
-
-
-