audit: Remove VuXML from audit and add OSV code#2558
Conversation
7d2aaf5 to
1abc347
Compare
bdcab12 to
bb6e5b9
Compare
Remove VuXML from code and add OSV JSON code. Code makes sure that there should be drop-in placement compatibility. Update OSV-schema to official one As FreeBSD OSV database ain't yet release this commit is WIP and should not be merged.
Fixing testcases to work with OSV and some changes that had to be made to come along with real world.
Remove yxml as it no currently used anywhere. VuXML which was only user for yxml is replaced with OSVf which uses libucl.
Update completion that is does not contain vuln.xml anymore but correct freebsd-osv.json
Remove vuln.xml and replace with correct freebsd-osv.json
Remove vuln.xml and replace with correct freebsd-osv.json
Update manpages which contains vuln.xml with freebsd-osv.json
Replace VULNXML_SITE with OSVF_SITE in pkg.conf.sample
|
Rebased to latest version. Ported old VuXML tests as they were so they are converted form XML to JSON and all they pass. |
|
I couldn't figure out which data the code uses to find a match. When looking at the freebsd-osv.json feed it seems to be package name. Is that correct? I am currently working on improving CPE data in the portstree and I am not sure how that might fit into the picture. The basic idea behind CPE was to allow matching CVEs to software products and my naive understanding was that CPE will help us getting rid of manually crafting VUXML entries. What do you think about CPE_STR? (sorry this is not an actual review but just me trying to understand the chosen solution and the consequences) |
There is actually basic CPE string creation and parsing in What comes to matching. |
Remove VuXML from code and add OSV JSON code. Code makes sure that there should be drop-in placement compatibility.
Before merging there should be ready:
pkg auditexternal/yxmlas it not anywhere thanpkg_audio.cTesting OSV database can be found from: freebsd-osv.json
As FreeBSD OSV database ain't yet release this commit is WIP and should not be merged.