-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
nagios: 4.0.8 -> 4.2.3 (for CVE) #20763
Conversation
This update includes many security related fixes. Version 4.2.0 fixes: - CVE-2008-4796 - CVE-2013-4214 Version 4.2.2 fixes: - CVE-2016-9565 Version 4.2.3 fixes: - CVE-2016-8641 See https://www.nagios.org/projects/nagios-core/history/4x/ for full detail changes.
@lsix, thanks for your PR! By analyzing the history of the files in this pull request, we identified @thoughtpolice and @edolstra to be potential reviewers. |
}; | ||
|
||
patches = [ ./nagios.patch ]; | ||
buildInputs = [ php perl gd libpng zlib ]; | ||
buildInputs = [ php perl gd libpng zlib unzip ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does something about the patch for the CVE involve needing unzip? This is fine of course, but looks a bit like a mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think that unzip it is related to the CVE:
$ nix-build -A nagios
…
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o summary.cgi summary.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o tac.cgi tac.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswrl.cgi statuswrl.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lm
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lgd -lpng -ljpeg -lz -lm
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o trends.cgi trends.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lgd -lpng -ljpeg -lz -lm
gcc -Wall -I.. -g -O2 -DHAVE_CONFIG_H -DNSCGI -o histogram.cgi histogram.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lgd -lpng -ljpeg -lz -lm
make[1]: Leaving directory '/tmp/nix-build-nagios-4.2.3.drv-0/nagios-4.2.3/cgi'
cd ./html && make
make[1]: Entering directory '/tmp/nix-build-nagios-4.2.3.drv-0/nagios-4.2.3/html'
(cd angularjs && unzip -u angular-1.3.9.zip)
/nix/store/mgdm9y2lhmyb74wwa42qhcl633vbwn26-bash-4.3-p46/bin/bash: unzip: command not found
make[1]: *** [Makefile:20: all] Error 127
make[1]: Leaving directory '/tmp/nix-build-nagios-4.2.3.drv-0/nagios-4.2.3/html'
make: *** [Makefile:75: all] Error 2
builder for ‘/nix/store/zisvfirpbs454rdskf92f31q02g3gv1b-nagios-4.2.3.drv’ failed with exit code 2
error: build of ‘/nix/store/zisvfirpbs454rdskf92f31q02g3gv1b-nagios-4.2.3.drv’ failed
This version seems to embed a web UI build on angularjs, and angular is embedded as a zip in the distribution. Not having it would mean that we would have to cherry-pick the security related updates from nagios-4.2.3 into nagios-4.0.8.
I'd merge and cherry-pick as soon as I heard back on the unzip. |
Ok, LGTM, thank you. merging and backporting. |
Backported at 7fc197f and a9523ed. Thank you! |
Motivation for this change
Nagios update contains many security related fixes (see https://www.nagios.org/projects/nagios-core/history/4x/) . 5b6d52b should probably be backported to stable.
Nagios version 4.2.0 fixes:
Nagios version 4.2.2 fixes:
Nagios version 4.2.3 fixes:
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)