]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: set CVE_PRODUCT to linux_kernel if not set by recipe
authorMikko Rapeli <mikko.rapeli@bmw.de>
Thu, 20 Jul 2017 13:23:10 +0000 (16:23 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Aug 2017 10:54:23 +0000 (11:54 +0100)
It is used by NVD database CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2017-7273

Setting this in kernel.bbclass fixes CVE reporting for all users of
the class.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 2e3d325440a50265c73f7d2e782530a02458bc33)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel.bbclass

index 7a134d5c290b4530a577410374963bdb4097fa0b..cfa61e60ded52593aabe60113d17188f0b73b0f7 100644 (file)
@@ -6,6 +6,8 @@ PACKAGE_WRITE_DEPS += "depmodwrapper-cross virtual/update-alternatives-native"
 
 do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot"
 
+CVE_PRODUCT ?= "linux_kernel"
+
 S = "${STAGING_KERNEL_DIR}"
 B = "${WORKDIR}/build"
 KBUILD_OUTPUT = "${B}"