-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nomad hard links prevent cron from running #1507
Comments
Are you trying to set up a cron inside the task's chroot? There is no cron daemon running so that will not work |
@dadgar no just in the "global" root or whatever you want to call it |
This can be due hardlinking of /etc/crontab and /etc/cron.d/* which nomad do when make chroot enviroment, for those files nomad must make copy but not hardlink, and issue will be resolved |
Here is the CVE: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1856 |
Any updates or recent experiences with this one? It is possible to work around the issue by specifying |
Some additional information/verification. I think this is at least an issue on all Debian-based distros. One of the maintainers for the Debian cron package here mentions the check for hard links cannot be disabled: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647193 So Nomad needs to exclude these files somehow. The user can do that by setting the |
Nomad version
Output from
nomad version
nomad 0.4.0
Operating system and Environment details
ubuntu 14.04
Issue
Nomad prevents cron from running after creating chroot.
Reproduction steps
Nomad Client logs (if appropriate)
From syslog:
The text was updated successfully, but these errors were encountered: