nixos/jitsi-videobridge: Mitigate CVE-2021-44228 (#150021)

This commit mitigates a remote code execution vulnerability in the log4j
library.
This commit is contained in:
Lara 2021-12-10 11:16:20 +01:00 committed by GitHub
parent 1b0334540f
commit c2b79874a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,6 +217,8 @@ in
"-Dnet.java.sip.communicator.SC_HOME_DIR_NAME" = "videobridge";
"-Djava.util.logging.config.file" = "/etc/jitsi/videobridge/logging.properties";
"-Dconfig.file" = pkgs.writeText "jvb.conf" (toHOCON jvbConfig);
# Mitigate CVE-2021-44228
"-Dlog4j2.formatMsgNoLookups" = true;
} // (mapAttrs' (k: v: nameValuePair "-D${k}" v) cfg.extraProperties);
in
{