Merge ~litios/ubuntu-cve-tracker:oval-remove-dup-kernel-elements into ubuntu-cve-tracker:master
Proposed by
David Fernandez Gonzalez
Status: | Merged |
---|---|
Merged at revision: | b3daae9600cb9ad3d6f9a3434d496030ad8528af |
Proposed branch: | ~litios/ubuntu-cve-tracker:oval-remove-dup-kernel-elements |
Merge into: | ubuntu-cve-tracker:master |
Diff against target: |
80 lines (+17/-12) 2 files modified
scripts/generate-oval (+1/-1) scripts/oval_lib.py (+16/-11) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eduardo Barretto | Approve | ||
Review via email: mp+438890@code.launchpad.net |
Description of the change
In OVAL, the test to check if a kernel is patched involves generating an object of type uname_object and a state with a reference to a local variable. Those elements allow getting the information of the running kernel in the system.
The state and the object elements were created multiple times. This PR changes this behavior so they are generated only once per OVAL file, the same as for the local variable.
CVE OVAL has been tested and the results are identical before and after this change.
To post a comment you must log in.
LGTM, thanks!