MariaDB 5.1 apparmor profile incompatible with mysql-test-run.pl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Medium
|
Unassigned | ||
OurDelta |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The apparmor profile shipped in MariaDB 5.1.39 ubuntu debs prevents mysql-test-run.pl from working (the reason is that /usr/sbin/mysqld needs write permissions to the --vardir directory given by the user to mysql-test-run.pl).
Since I believe apparmor is enabled by default in recent Ubuntu's, this means mysql-test-run.pl fails out-of-the-box on such systems.
I don't think apparmor functionality is critical for MariaDB at this stage. Options for fixes (all ok with me):
1. Move the MariaDB apparmor profile to /usr/share/
2. Document the issue that apparmor needs to be uninstalled/
3. Fix the apparmor profile to not restrict /usr/sbin/mysqld from writing files anywhere normal permissions allow.
Changed in maria: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in ourdelta: | |
status: | New → Confirmed |
Changed in maria: | |
milestone: | none → 5.1 |
We removed the default apparmor profile from mariadb packages due to this and multiple other issues for users.
Users can still maintain their own profile for mariadb, and adjust it to allow running mysql-test-run as they want/need.