git.iko.soy/typeable/nixpkgs
on master help sign in
linux-4.13: mark as insecure (+required generic changes)

extraMeta was being fed as passthru without being processed by stdenv, so without those changes, adding the security attribute would be useless.

commit13797ff5224817abcb05926de842eb4e0fb41382 authorVladimír Čunát <vcunat@gmail.com> dateMon 4 Dec 2017, 09:33 (9 years ago) parent561de38
3 files changed+11−6
pkgs/os-specific/linux/kernel/generic.nix+2−5 pkgs/os-specific/linux/kernel/linux-4.13.nix+6 pkgs/os-specific/linux/kernel/manual-config.nix+3−1
pkgs/os-specific/linux/kernel/generic.nix+2−5
@@ -118,7 +118,7 @@ let
118118 };
119119
120120 kernel = buildLinux {
121− inherit version modDirVersion src kernelPatches stdenv;
121+ inherit version modDirVersion src kernelPatches stdenv extraMeta;
122122
123123 configfile = configfile.nativeDrv or configfile;
124124
@@ -131,10 +131,7 @@ let
131131
132132 passthru = {
133133 features = kernelFeatures;
134−
135− meta = kernel.meta // extraMeta;
136−
137− passthru = kernel.passthru // (removeAttrs passthru [ "passthru" "meta" ]);
134+ passthru = kernel.passthru // (removeAttrs passthru [ "passthru" ]);
138135 };
139136
140137 nativeDrv = lib.addPassthru kernel.nativeDrv passthru;
pkgs/os-specific/linux/kernel/linux-4.13.nix+6
@@ -4,6 +4,12 @@ import ./generic.nix (args // rec {
44 version = "4.13.16";
55 extraMeta.branch = "4.13";
66
7+ # TODO: perhaps try being more concrete (ideally CVE numbers).
8+ extraMeta.knownVulnerabilities = [
9+ "ALSA: usb-audio: Fix potential out-of-bound access at parsing SU"
10+ "eCryptfs: use after free in ecryptfs_release_messaging()"
11+ ];
12+
713 src = fetchurl {
814 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
915 sha256 = "0cf7prqzl1ajbgl98w0symdyn0k5wl5xaf1l5ldgy6l083yg69dh";
pkgs/os-specific/linux/kernel/manual-config.nix+3−1
@@ -39,6 +39,8 @@ in {
3939 config ? stdenv.lib.optionalAttrs allowImportFromDerivation (readConfig configfile),
4040 # Cross-compiling config
4141 crossConfig ? if allowImportFromDerivation then (readConfig crossConfigfile) else config,
42+ # Use defaultMeta // extraMeta
43+ extraMeta ? {},
4244 # Whether to utilize the controversial import-from-derivation feature to parse the config
4345 allowImportFromDerivation ? false
4446}:
@@ -228,7 +230,7 @@ let
228230 maintainers.thoughtpolice
229231 ];
230232 platforms = platforms.linux;
231− };
233+ } // extraMeta;
232234 };
233235in
234236