RHEL7: crontab can race during modification
Environment
- Red Hat Enterprise Linux (RHEL) 7.5
- cronie-1.4.11-17.el7
Issue
Even though crontab is modified, it will not apply with modification.
Resolution
-
Red Hat Enterprise Linux 7
- Update to
cronie-1.4.11-23
via RHBA-2019:2041 or later
- Update to
-
Red Hat Enterprise Linux 7.6 EUS
- Update to
cronie-1.4.11-20.el7_6
via RHBA-2018:3635 or newer.
- Update to
Root Cause
- If crontab is modified twice at the same second the crond reads it which means the timestamp will not change, the latest content will never be read.
- Private bug 1638691 was filed.
There was a bug in cronie, fixed upstream by commit:
https://github.com/cronie-crond/cronie/commit/e91b6ebbef989cd167607e44f99424a3c0a8f24d
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments