[Bug 842264] New: Starting mysql kills all permissions in /usr
https://bugzilla.novell.com/show_bug.cgi?id=842264 https://bugzilla.novell.com/show_bug.cgi?id=842264#c0 Summary: Starting mysql kills all permissions in /usr Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: mhrusecky@suse.com ReportedBy: jengelh@inai.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- If you have /etc/my.cnf: log-bin=mysql-bin.log log-bin-index=mysql.log.index log-error=log.error.log that is, non-absolute paths, /etc/init.d/mysql will foolishly chown all of /usr to mysql:mysql because /usr happens to be the script's CWD. /etc/init.d/mysql tries to be overly smart (it should not) and does: 1. parse the mysql command line which it probably should not 68: --log-error=*) log_error="`echo "$arg" | sed -e 's/^[^=]*=//'`" 2. attempt to determine the directory of the particular file 329: log_dir="`dirname "$i"`" Because "$i" equals "log.error.log", `dirname "$i"` will be ".". That is BAD BAD BAD. 3. chowns everything. chmod 770 "$log_dir" chown -R --no-dereference mysql:mysql "$log_dir" 4. Almost everything in the system fails. Now, whether my.cnf should have relative paths is another question, but putting them there causes severe havoc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=842264 https://bugzilla.novell.com/show_bug.cgi?id=842264#c1 Michal Hrusecky <mhrusecky@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ctype@mail.ru --- Comment #1 from Michal Hrusecky <mhrusecky@suse.com> 2013-11-06 10:14:32 UTC --- *** Bug 834967 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=834967 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=842264 https://bugzilla.novell.com/show_bug.cgi?id=842264#c2 --- Comment #2 from Michal Hrusecky <mhrusecky@suse.com> 2013-11-06 11:59:42 UTC --- Next MySQL/MariaDB update will have fix included - check for absolute path and run the code only for absolute paths. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com