Bug #79458 | unable to start server/create db when SELinux enabled with Enforcing | ||
---|---|---|---|
Submitted: | 30 Nov 2015 14:53 | Modified: | 18 Dec 2015 18:39 |
Reporter: | Ramana Yeruva | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S3 (Non-critical) |
Version: | 5.7.10 | OS: | Linux |
Assigned to: | Balasubramanian Kandasamy | CPU Architecture: | Any |
[30 Nov 2015 14:53]
Ramana Yeruva
[17 Dec 2015 3:48]
Balasubramanian Kandasamy
Thanks for the bug report. We have pushed the fix to mysql-5.7 and trunk. Due to SELinux policy mysqld can't read init-file located elsewhere than /var/lib/mysql. --initialize wants clean datadir. Move installing of validate password plugin to after initialize is done and use /var/lib/mysql as directory for init-file option. Use of other directory than /var/lib/mysql caused SELinux to deny access to file used as argument to --init-file. This broke initscript for new installations SELinux on Fedora don't accept access to /tmp for mysqld, use /var/tmp instead.
[18 Dec 2015 18:39]
Paul DuBois
Noted in 5.7.11 changelog. On SELinux, mysqld --initialize with an --init-file option could fail to initialize the data directory.