Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cve-filter: Add class to filter cve files
This class is designed to filter CVEs (Common Vulnerabilities and Exposures) from CVE files. It should be used in conjunction with the cve-check class from the openembedded-core. Steps to Use This Class 1. Add the following lines to your distro configuration file: include conf/distro/include/cve-extra-exclusions.inc INHERIT += "cve-check" 2. Inherit the cve-filter class in the image recipe. -------- Configuration Variables ---------------------------- The cve-filter class provides several configurable variables: CVE_FILTER_PREVIOUS_FILE: Specifies the previous version of the CVE JSON file. If no file is provided, only the current file will be considered. Default: empty CVE_FILTER_PREVIOUS_VERSION: Specifies the distro version of the previous CVE JSON file. The CVE_FILTER_PREVIOUS_FILE must be defined, otherwise the value 0 will be used. Example: "1.0.0" Default: "0.0.0" CVE_FILTER_MARKDOWN_FILE_NAME: Specifies the name of the output Markdown file containing the list of detected CVEs. Default: "${IMAGE_NAME}.md" CVE_FILTER_IGNORED_CVES: Lists the CVEs that should be ignored by the filter. Example: "CVE-2017-6264 CVE-2023-1234" Default: empty The following files was added: - classes/cve-filter.bbclass - lib/ossystems/cve_filter.py - lib/ossystems/__init__.py Also, the following file was changed: - conf/layer.conf Signed-off-by: Rodrigo M. Duarte <[email protected]>
- Loading branch information