Skip to content

Commit

Permalink
oraclejdk8psu: mark as insecure
Browse files Browse the repository at this point in the history
This is a sort port of 4d6f880 (NixOS#43811). The mentioned issues are not
being fixed in the release. The CPU release should be used instead.

Since someone might still need the PSU version it will just be marked as
insecure allowing the user to whitelist it, if required.
  • Loading branch information
andir committed Oct 6, 2018
1 parent bfa517d commit 3b23342
Showing 1 changed file with 31 additions and 12 deletions.
43 changes: 31 additions & 12 deletions pkgs/development/compilers/oraclejdk/jdk8psu-linux.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
import ./jdk-linux-base.nix {
productVersion = "8";
patchVersion = "172";
downloadUrl = http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html;
sha256.i686-linux = "0csskx8xis0dr1948j76fgrwwsj4gzdbjqfi7if4v4j62b9i0hqa";
sha256.x86_64-linux = "0inkx73rwv7cvn9lqcr3hmnm0sr89h1fh29yamikb4dn02a0p818";
sha256.armv7l-linux = "1576cb0rlc42dsnmh388gy1wjas7ac6g135s8h74x8sm4b56qpln";
sha256.aarch64-linux = "0zpkmq8zxmpifawj611fg67srki63haz02rm6xwfc5qm2lxx5g6s";
jceName = "jce_policy-8.zip";
jceDownloadUrl = http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html;
sha256JCE = "0n8b6b8qmwb14lllk2lk1q1ahd3za9fnjigz5xn65mpg48whl0pk";
}
{ callPackage, ... }@_args:
let
drv = import ./jdk-linux-base.nix {
productVersion = "8";
patchVersion = "172";
downloadUrl = http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html;
sha256.i686-linux = "0csskx8xis0dr1948j76fgrwwsj4gzdbjqfi7if4v4j62b9i0hqa";
sha256.x86_64-linux = "0inkx73rwv7cvn9lqcr3hmnm0sr89h1fh29yamikb4dn02a0p818";
sha256.armv7l-linux = "1576cb0rlc42dsnmh388gy1wjas7ac6g135s8h74x8sm4b56qpln";
sha256.aarch64-linux = "0zpkmq8zxmpifawj611fg67srki63haz02rm6xwfc5qm2lxx5g6s";
jceName = "jce_policy-8.zip";
jceDownloadUrl = http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html;
sha256JCE = "0n8b6b8qmwb14lllk2lk1q1ahd3za9fnjigz5xn65mpg48whl0pk";
};
args = removeAttrs _args ["callPackage"];
in
(callPackage drv args).overrideAttrs (attrs: {
meta = attrs.meta // {
knownVulnerabilities = [
# Issues from the latest CPU update that affect this PSU version
# https://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html#AppendixJAVA
"CVE-2018-2938"
"CVE-2018-2964"
"CVE-2018-2941"
"CVE-2018-2942"
"CVE-2018-2973"
"CVE-2018-2940"
"CVE-2018-2952"
];
};
})

0 comments on commit 3b23342

Please sign in to comment.