Skip to content

Commit a06af76

Browse files
authored
fix(sbom): handle linux_kernel (#4935)
linux_kernel is an operating system, CPE type shall be set to "o", not default "a" Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
1 parent 13004de commit a06af76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cve_bin_tool/sbom_manager/generate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def generate_sbom(self) -> None:
8282
product_number = product_number + 1
8383
my_package.initialise()
8484
my_package.set_name(product_data.product)
85+
if product_data.product == "linux_kernel":
86+
my_package.set_type("operating-system")
8587
package_id = f"{product_number}-{product_data.product}"
8688
my_package.set_id(package_id)
8789
my_package.set_version(product_data.version)

0 commit comments

Comments
 (0)