sbom_cve_check: add support to kernel scripts/sbom - #25
Draft
gastmaier wants to merge 1 commit into
Draft
Conversation
For Linux kernel release v7.2 (released on v7.2-rc2), a sbom generator will be included: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/sbom Add support to its format. Detect 'KernelSbom' tool: { "type": "SoftwareAgent", "spdxId": "p:0", "creationInfo": "_:creationinfo", "name": "KernelSbom" }, to differentiate between the yocto target https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/sbom30.py and the kernel's scripts/sbom The kernel sbom genrates 3 files: - sbom-build.spdx.json - sbom-output.spdx.json - sbom-source.spdx.json The source.spdx contais the list of files: { "type": "software_File", "name": "arch/arm/boot/compressed/misc.c", [ ... ] }, That is used to filter-out CVEs using the --export-filter-vulnerable flag. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Collaborator
|
Hello, thanks for working on this. I think the right way to implement it is to add support for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For Linux kernel release v7.2 (released on v7.2-rc2), a sbom generator will be included:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/sbom
Add support to its format. Detect 'KernelSbom' tool:
to differentiate between the yocto target
https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/sbom30.py and the kernel's scripts/sbom
The kernel sbom genrates 3 files:
The source.spdx contains the list of files:
That is used to filter-out CVEs using the --export-filter-vulnerable flag.
Verification
End-to-end test
@augelu-tng
BTW 1
Android seems to have its own thingy, too:
https://cs.android.com/android/platform/superproject/+/android-latest-release:build/make/tools/sbom/gen_sbom.py
BTW 2
I have a quick checker based on 'strak' to query linux vulns