-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tsmeta] Parse kernel Makefile for accurate cve_version inference.
In the event that PV for the kernel is set to something different than '${Major}.${Minor}.${Revision}' (and CVE_VERSION is _not_ set), we wind up mis-reporting the CVEs present, and more importantly, those that are fixed. In order to ameliorate this, we can just parse the top-level kernel Makefile and construct the version string ourselves. That's what this patch does, using a heavily-adapted snippet from Documentation/conf.py in the kernel tree. In addition, it breaks out 2 helpers from the base function (tsmeta_get_src()) into _get_cve_version() and it's counterpart _get_cve_product().
- Loading branch information
1 parent
91fde43
commit 9d092e9
Showing
1 changed file
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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