SELinux is furious about different mysql db location

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

 



Hi, list!
I would like to change default location for MySQL databases. So I
copied /var/lib/mysql to /srv/lib/ and changed datadir variable in
/etc/my.cnf from default /var/lib/mysql to /srv/lib/mysql. Since that
I'm unable to start mysqld service. With every effort I got AVC denial
messages suggesting me to do the following:
# semanage fcontext -a -t FILE_TYPE 'mysql'
where FILE_TYPE is one of the following: mysqld_var_run_t,
mysqld_db_t, tmp_t, mysqld_tmp_t, user_home_t, var_lib_t, var_run_t,
var_log_t, root_t.
Then execute:
restorecon -v 'mysql'
I tried all types of FILE_TYPE without success. I even tried to execute:
grep mysqld /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
With no luck either. What should I do to make this configuration
works? Please do not suggest me to shut down selinux. This machine
runs ssh+ftp+httpd services and has static IP.
TIA
-- 
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux