20.3. Booleans
SELinux is based on the least level of access required for a service to run. Services can be run in a variety of ways; therefore, you need to specify how you run your services. Use the following Booleans to set up SELinux:
selinuxuser_mysql_connect_enabled
- When enabled, this Boolean allows users to connect to the local MariaDB server.
exim_can_connect_db
- When enabled, this Boolean allows the
exim
mailer to initiate connections to a database server. ftpd_connect_db
- When enabled, this Boolean allows
ftp
daemons to initiate connections to a database server. httpd_can_network_connect_db
- Enabling this Boolean is required for a web server to communicate with a database server.
Note
Due to the continuous development of the SELinux policy, the list above might not contain all Booleans related to the service at all times. To list them, enter the following command:
~]$ getsebool -a | grep service_name
Enter the following command to view description of a particular Boolean:
~]$ sepolicy booleans -b boolean_name
Note that the additional policycoreutils-devel package providing the sepolicy
utility is required for this command to work.