I'd like to for once leave selinux running on a server for the alleged increased security.
I usually disable selinux to get anything to work.
How do I tell selinux to allow mysql connections?
The most documentation I've found is this line from mysql.com:
If you are running under Linux and Security-Enhanced Linux (SELinux) is enabled, make sure you have disabled SELinux protection for the mysqld process.
wow ... that's really helpful.
|
|
|||
migrated from stackoverflow.com Feb 24 '11 at 23:20
|
To check SELinux
To see what flags are set on httpd processes
To allow Apache to connect to remote database through SELinux
|
|||
|
|
|
The |
||||
|
|
|
Are you sure it's selinux? Normal connections from outside should be allowed by selinux. So it could also be the firewall. If you have local services trying to connect to mysqld, that's something different: http://docs.fedoraproject.org/en-US/Fedora/13/html/Managing_Confined_Services/sect-Managing_Confined_Services-MySQL-Booleans.html |
|||
|
|
|
Apparently configuring selinux isn't trivial. You may wish to start here.
puts selinux into permissive mode, where it allows anything but logs what it's allowing. A reboot or
returns to blocking whatever the policy doesn't permit. Check out these selinux policy docs for mySQL in Fedora. |
|||
|
|
|
Do you get an error? What flavor of linux are you using? Security context is a good place to start if you are getting an error. ls -Z will give context... But your question is very vague. |
|||||||||||
|
getsebool -a | grep mysql6. Exact steps you have taken to reproduce this – hobodave Feb 24 '11 at 23:25