[Bug 803418] New: logrotate: checkproc race condition
https://bugzilla.novell.com/show_bug.cgi?id=803418 https://bugzilla.novell.com/show_bug.cgi?id=803418#c0 Summary: logrotate: checkproc race condition Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: vcizek@suse.com ReportedBy: suse-beta@cboltz.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Found in the german LinuxMagazin: http://www.linux-magazin.de/Ausgaben/2012/05/Bash-Bashing (it looks like they didn't enter a bugreport after writing the article :-/ ) /etc/cron.daily/logrotate first checkproc's for /usr/sbin/logrotate, and then runs mktemp and finally /usr/sbin/logrotate. There is a small timeframe between checkproc'ing for logrotate and starting it, and if Murphy calls in, you might end up with two instances of logrotate running. Please implement some better locking to avoid this race condition. (The article discusses some methods, but I'm not sure if it's available in english.) -- 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