Bug #84668 | Can't configure keyring_file_data on new install | ||
---|---|---|---|
Submitted: | 25 Jan 2017 15:19 | Modified: | 31 Jan 2017 13:29 |
Reporter: | Chris Fidao | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Security: Encryption | Severity: | S2 (Serious) |
Version: | 5.7.17 | OS: | Ubuntu (16.04) |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[25 Jan 2017 15:19]
Chris Fidao
[27 Jan 2017 13:17]
Georgi Kodinov
What is the exact error you're getting ? Can you please check your SElinux configuration ? FYI our regression tests contain starting the server with a non-standard keyring_file_data tests in the following file: suite\auth_sec\t\keyring_file_data.test I've tried on my windows and it worked too. Please also check your plugin directory (SELECT @@plugin_dir) and whether it actually contains a keyring_file.so. Also check if the plugin is actually loaded: select plugin_status from information_schema.plugins where plugin_name = 'keyring_file';
[31 Jan 2017 13:29]
Chris Fidao
Thanks, the question on SELinux drove me to find the issue. While Ubuntu does not have SELinux, it does have AppArmor. The official mysql package for Ubuntu installs an AppArmor profile for Ubuntu 16.04. This limits directory access, specifically /var/lib/mysql-keyring is meant to be used for the keyring.