Re: mysql with selinux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



olga@xxxxxxxxxxxxxx wrote:
Hi,

Does anyone know how to configure mysql to work with selinux? I am trying
to start the server but it fails.

kernel: audit(1165435380.294:368): avc:  denied  { search } for  pid=24423
comm="mysqld" name="/" dev=cciss/c0d0p1 ino=2
scontext=user_u:system_r:mysqld_t
tcontext=system_u:object_r:httpd_sys_content_t tclass=dir
Dec  6 14:03:30 host1 mysqld: Starting MySQL:  failed

Any ideas?

Thank you.

Olga

This looks like some kind of labeling problem. mysqld should not be search / which is labeled httpd_sys_content_t.

ls -lZd /

If you need to relabel you should

touch /.autorelabel; reboot

The only thing you should need to do to get apache and mysql working together is turn on the
httpd_can_network_connect_db boolean.

setsebool -P httpd_can_network_connect_db=1

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux