git.iko.soy/typeable/nixpkgs
on master help sign in
busybox: 1.23.2 -> 1.24.2

fixes https://lwn.net/Vulnerabilities/696815/

commit74876b0cad109eca1a94f96abba068042aa7e4ea authorJörg Thalheim <joerg@higgsboson.tk> dateSun 25 Sep 2016, 08:35 (10 years ago) parentcdec20a
2 files changed+6−7
pkgs/os-specific/linux/busybox/busybox-in-store.patch+4−5 pkgs/os-specific/linux/busybox/default.nix+2−2
pkgs/os-specific/linux/busybox/busybox-in-store.patch+4−5
@@ -2,14 +2,13 @@ Allow BusyBox to be invoked as "<something>-busybox". This is
22necessary when it's run from the Nix store as <hash>-busybox during
33stdenv bootstrap.
44
5−diff -ru -x '*~' busybox-1.22.1-orig/libbb/appletlib.c busybox-1.22.1/libbb/appletlib.c
6−--- busybox-1.22.1-orig/libbb/appletlib.c 2014-01-09 19:15:44.000000000 +0100
7−+++ busybox-1.22.1/libbb/appletlib.c 2014-10-29 09:53:01.232052068 +0100
8−@@ -764,7 +764,7 @@
5+--- busybox-1.24.2-orig/libbb/appletlib.c 2016-03-17 21:35:49.000000000 +0100
6++++ busybox-1.24.2/libbb/appletlib.c 2016-09-25 08:48:18.293104041 +0200
7+@@ -779,7 +779,7 @@
98 int applet = find_applet_by_name(name);
109 if (applet >= 0)
1110 run_applet_no_and_exit(applet, argv);
12−- if (strncmp(name, "busybox", 7) == 0)
11+- if (is_prefixed_with(name, "busybox"))
1312+ if (strstr(name, "busybox") != 0)
1413 exit(busybox_main(argv));
1514 }
pkgs/os-specific/linux/busybox/default.nix+2−2
@@ -26,11 +26,11 @@ let
2626in
2727
2828stdenv.mkDerivation rec {
29− name = "busybox-1.23.2";
29+ name = "busybox-1.24.2";
3030
3131 src = fetchurl {
3232 url = "http://busybox.net/downloads/${name}.tar.bz2";
33− sha256 = "16ii9sqracvh2r1gfzhmlypl269nnbkpvrwa7270k35d3bigk9h5";
33+ sha256 = "0mf8f6ly8yi1fbr15jkyv6hxwh2x800x661rcd11rwsnqqzga7p7";
3434 };
3535
3636 hardeningDisable = [ "format" ] ++ lib.optional enableStatic [ "fortify" ];