diff options
author | Konstantin Shemyak <konstantin.shemyak@ge.com> | 2018-02-19 16:35:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-24 10:31:46 +0000 |
commit | 2e07b1c0bb6e88cd0338b477ab9e69b1fe605e6c (patch) | |
tree | 8319c38b5618fbd105441c10fec3117113d708c3 /meta/recipes-devtools/cve-check-tool | |
parent | 6c0c3220aa82e3cace95a1184592985163bc0efd (diff) | |
download | poky-2e07b1c0bb6e88cd0338b477ab9e69b1fe605e6c.tar.gz |
cve-check-tool: correctly exported web proxies
The binary 'cve-check-update' downloads the CVE database from the Internet.
If the system is behind a web proxy, the download fails, as proxy-related
variables are not exported.
In turn, 'cve-check-tool' does not connect to the network and correspondingly
does not need exported proxies.
Exported all proxy-related environment variables to 'cve-check-update' and
removed the unneeded export from 'cve-check-tool'.
(From OE-Core rev: 17db210975c740aff12732c511cf4fb32b507365)
Signed-off-by: Konstantin Shemyak <konstantin.shemyak@ge.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cve-check-tool')
-rw-r--r-- | meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb b/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb index 7b70daa323..1c84fb1cf2 100644 --- a/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb +++ b/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb | |||
@@ -41,6 +41,7 @@ do_populate_cve_db() { | |||
41 | [ -z "${cve_dir}" ] && cve_dir="${DL_DIR}/CVE_CHECK" | 41 | [ -z "${cve_dir}" ] && cve_dir="${DL_DIR}/CVE_CHECK" |
42 | [ -z "${cve_file}" ] && cve_file="${TMPDIR}/cve_check" | 42 | [ -z "${cve_file}" ] && cve_file="${TMPDIR}/cve_check" |
43 | 43 | ||
44 | unused="${@bb.utils.export_proxies(d)}" | ||
44 | bbdebug 2 "Updating cve-check-tool database located in $cve_dir" | 45 | bbdebug 2 "Updating cve-check-tool database located in $cve_dir" |
45 | # --cacert works around curl-native not finding the CA bundle | 46 | # --cacert works around curl-native not finding the CA bundle |
46 | if cve-check-update --cacert ${sysconfdir}/ssl/certs/ca-certificates.crt -d "$cve_dir" ; then | 47 | if cve-check-update --cacert ${sysconfdir}/ssl/certs/ca-certificates.crt -d "$cve_dir" ; then |