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
4.3.3 - cannot touch `/run/nagios.lock': No such file or directory #411
Comments
Troy, I'm looking into this. I'll have a bugfix out shortly. I think I'm going to not advertise the 4.3.3 release until after 4.3.4 is out - which I'll shoot for Thursday I think. The easiest fix is to simply adjust the NagiosRunFile line to look like the one from 4.3.2. You can also @orlitzky I'm assuming this change was necessary for the openrc-init? |
Please don't do that, it will bring back the vulnerability! The correct fix is to pass The change was necessary to get the lockfile out of a nagios-owned directory. So long as the lockfile is in a directory owned by the nagios user, he can overwrite it regardless of who owns the actual lockfile. (That's why you don't want to create Anyone without a |
Autodetection shouldn't be too hard, here's an untested patch. Someone without a
|
Eh.. aesthetically this is a little nicer: default_lockfile_path=/var/run/nagios.lock
if test -d /run; then
default_lockfile_path=/run/nagios.lock
fi |
Thanks @orlitzky - I'm going to get this added, along with your changelog addition and possibly something else and we'll issue a 4.3.4 release soon. |
Also, just to note: once we switch core to use the autoconf-macros project, this kind of detection will be way easier and maybe even a bit prettier :) |
Fixed in c3aec1f If anyone knows how to get variables to work in AC_* macro output that'd be helpful. Something like:
The output string is literally: |
I don't see an obvious way to fix this.. the "help" string gets defined right at the top of the resulting |
Thanks. I don't either. If you ever come up with something, let me know :) |
Also - there's something kind of borked with this. We didn't account for an error message that's printed based on the lock file writing. It's writing, but spitting out errors. I'll fix that here, soon - but any insight is welcome @orlitzky |
@hedenface what error are you seeing (and with what lockfile path)? |
Installing 4.3.3 on CentOS 5.x / 6.x and I have come across this problem:
Looking at /etc/rc.d/init.d/nagios on 4.3.3:
NagiosRunFile=/run/nagios.lock
Looking at /etc/rc.d/init.d/nagios on 4.3.2:
NagiosRunFile=${prefix}/var/nagios.lock
The text was updated successfully, but these errors were encountered: