Hi All,
I have installed CentOS6 64bit version with selinux enabled (Enforce mode ). I would like to start mysql service with selinux enabled. In earlier versions of Centos if I run the comamnd, "setsebool -P mysqld_disable_trans=1 allow_user_mysql_connect=1", I can start the mysql.
But in CentOS 6 there are two booleans "allow_user_mysql_connect" and "mysql_connect_any" which are made to off, even mysql is not starting, unless I am setting the selinux to Permissive mode.
Is there any specific command to allow mysql to start, when Selinux is in Enforce mode.
Regards
Gopal
Selinux issue not solved after setting boolean
-
- Posts: 7
- Joined: 2006/07/13 06:23:14
- Contact:
Re: Selinux issue not solved after setting boolean
MySQL should work out of the box on CentOS 6 with SELinux enabled. So the question is: what changes have you made that are stopping it from working?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Selinux issue not solved after setting boolean
You can see human-readable reasons for denials with[code]audit2why -a[/code]
To generate new policy modules use[code]audit2allow -a -M <policyname>[/code]
If you get not found errors[code]yum install policycoreutils-python[/code]
To generate new policy modules use[code]audit2allow -a -M <policyname>[/code]
If you get not found errors[code]yum install policycoreutils-python[/code]