Documentation
¶
Overview ¶
Provenancecheck verifies the generated provenance records in the nvidia module. Run it after regenerating:
make -C nvidia provenance-check
It checks four properties. The first three keep a record portable, so that a clone reproduces the same bytes on a different host:
- no host paths, such as /Users or /Volumes
- no build sandbox paths, such as go-build or /var/folders
- cwd recorded as "."
The fourth keeps a record useful. Ten packages are generated by gen-nvidia and share one generator field; only argv separates them, as -api cudnn against -api cupti -clang=false. If argv redaction ever collapses two of them, provenance stops saying which recipe produced which package, and nothing else records it. That failure is silent, so it is checked here rather than left to a reader.
A package may hold more than one record, so the fourth property compares packages rather than files. Two records in one package that share an argv are reported too, in different words: that one identifies its recipe and merely repeats the other.