Sunday, November 17, 2013

mysql and SELinux - list of mysql related SELinux contexts

For curiosity sake, here's a list of mysql SELinux contexts:
# seinfo -t | grep mysql
   mysqld_var_run_t
   mysqld_server_packet_t
   mysqlmanagerd_client_packet_t
   mysqlmanagerd_var_run_t
   mysqld_etc_t
   mysqld_log_t
   mysqlmanagerd_port_t
   mysqld_initrc_exec_t
   mysqld_exec_t
   mysqld_safe_t
   mysqlmanagerd_t
   mysqld_client_packet_t
   mysqlmanagerd_initrc_exec_t
   mysqld_safe_exec_t
   mysqld_db_t
   mysqld_t
   mysqld_tmp_t
   mysqlmanagerd_server_packet_t
   mysqlmanagerd_exec_t
   mysqld_port_t

And just in case if you don't have the command seinfo installed, and yum will probably tell you setools-console is needed
# yum whatprovides */seinfo

Install setools-console
# yum install setools-console

No comments: