LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   SELinux is not allowing mysql server to start (https://www.linuxquestions.org/questions/linux-security-4/selinux-is-not-allowing-mysql-server-to-start-571231/)

shobhit 07-21-2007 03:11 PM

SELinux is not allowing mysql server to start
 
Hi,

I have Fedora 7 running on my home computer, with MySql database, which I use mainly for teaching myself.
My problem is that during boot the mysql server is not started.

My question is is there a way to allow mysql to start at boot time, and also have SELinux running on my system?

Strangely enough if I manually execute /etc/init.d/mysqld start
then the server comes up without complaining the least bit.

The /var/log/messages file says
Quote:

Jul 22 00:57:38 localhost setroubleshoot: SELinux is preventing /usr/libexec/mysqld (mysqld_t) "write" to mysql (user_home_dir_t). For complete SELinux messages. run sealert -l 24a98eb4-d078-44af-ab0c-4eb6e7fb50f3
Jul 22 00:57:38 localhost setroubleshoot: SELinux is preventing /usr/libexec/mysqld (mysqld_t) "write" to mysql (user_home_dir_t). For complete SELinux messages. run sealert -l 24a98eb4-d078-44af-ab0c-4eb6e7fb50f3
Jul 22 00:57:38 localhost setroubleshoot: SELinux is preventing the /usr/libexec/mysqld from using potentially mislabeled files (ibdata1). For complete SELinux messages. run sealert -l 575b55ad-3fe2-4748-9380-a5afbfee6377

macemoneta 07-22-2007 05:56 AM

Have you considered following the instructions in the message?


All times are GMT -5. The time now is 08:10 PM.