]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: exclude child recipes from CVE scanning
authorRoss Burton <ross.burton@intel.com>
Tue, 16 Jul 2019 12:47:21 +0000 (13:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Jul 2019 08:36:29 +0000 (09:36 +0100)
As glibc will be scanned for CVEs, we don't need to scan glibc-locale,
glibc-mtrace, and glibc-scripts which are all separate recipes for technical
reasons.

Exclude the recipes by setting CVE_PRODUCT in the recipe, instead of using the
global whitelist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass
meta/recipes-core/glibc/glibc-locale.inc
meta/recipes-core/glibc/glibc-mtrace.inc
meta/recipes-core/glibc/glibc-scripts.inc

index 5979edf3d178968b246d1b0e0aec9e65d3ce91d5..19ac48cfd49ab1538040cb96e706e35a0c47fc85 100644 (file)
@@ -37,9 +37,7 @@ CVE_CHECK_COPY_FILES ??= "1"
 CVE_CHECK_CREATE_MANIFEST ??= "1"
 
 # Whitelist for packages (PN)
-CVE_CHECK_PN_WHITELIST = "\
-    glibc-locale \
-"
+CVE_CHECK_PN_WHITELIST ?= ""
 
 # Whitelist for CVE and version of package. If a CVE is found then the PV is
 # compared with the version list, and if found the CVE is considered
index bf5eaee93804414ba6d53376c4c33f318d3bd1a6..ef06389ff941024e211be8714dce409c8c48c346 100644 (file)
@@ -98,3 +98,6 @@ do_install() {
 inherit libc-package
 
 BBCLASSEXTEND = "nativesdk"
+
+# Don't scan for CVEs as glibc will be scanned
+CVE_PRODUCT = ""
index d703c14bdc1688e00b5946af65b1b51693a5ce6e..ef9d60ec2398fd3688bb186df2784ab1b551e693 100644 (file)
@@ -11,3 +11,6 @@ do_install() {
        install -d -m 0755 ${D}${bindir}
        install -m 0755 ${SRC}/mtrace ${D}${bindir}/
 }
+
+# Don't scan for CVEs as glibc will be scanned
+CVE_PRODUCT = ""
index 2a2b41507ed6abc3a5f3253e3cd33739771609bc..14a14e45126ae872a8203421161776439ba728a8 100644 (file)
@@ -18,3 +18,6 @@ do_install() {
 # sotruss script requires sotruss-lib.so (given by libsotruss package), 
 # to produce trace of the library calls.
 RDEPENDS_${PN} += "libsotruss"
+
+# Don't scan for CVEs as glibc will be scanned
+CVE_PRODUCT = ""