Fix: CVE-2016-1238 recent perl doesn't include cwd 13/7413/2 blowfish 2.0.4 2.0.5 blowfish_2.0.4 blowfish_2.0.5
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 2 Dec 2016 16:13:31 +0000 (16:13 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 2 Dec 2016 20:11:22 +0000 (20:11 +0000)
Upstream YP introduced
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=jethro&id=c3f5e64b583e0f8c62952f4c2a93c41310987bdf

Thus this adds a follow-up fix for openssl.

Change-Id: Ifb55c3022596a6105662618f4cd08bd0165f5a6b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
meta-agl/recipes-connectivity/openssl/openssl_1.0.2h.bbappend [new file with mode: 0644]

diff --git a/meta-agl/recipes-connectivity/openssl/openssl_1.0.2h.bbappend b/meta-agl/recipes-connectivity/openssl/openssl_1.0.2h.bbappend
new file mode 100644 (file)
index 0000000..31c5c20
--- /dev/null
@@ -0,0 +1,7 @@
+# As fixed in debian package perl (5.22.2-3) [SECURITY] CVE-2016-1238
+# We have to tell perl to include cwd in @INC using PERL_USE_UNSAFE_INC
+# Fixed in morty release. See commit : http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ffdc23ab5311b651e27c9bda16da5ddd482249fa
+
+do_configure_prepend() {
+${@'export PERL_USE_UNSAFE_INC=1' if (d.getVar("DISTRO_CODENAME", True) == "chinook") else ''}
+}