forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
]; | ||
}; | ||
}) |