Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE vuln
ADD COLUMN IF NOT EXISTS not_vulnerable BOOLEAN NOT NULL DEFAULT false;

COMMENT ON COLUMN vuln.not_vulnerable IS 'Invert the meaning of the record: assert that described versions are not vulnerable.';
4 changes: 4 additions & 0 deletions vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ type Vulnerability struct {
// For instances from a claircore "datastore" implementation, this will also
// include the "Self" alias.
Aliases []Alias

// Invert means this Vulnerability should be interpreted as an assertion
// that matched packages are NOT vulnerable to the indicated flaw.
Invert bool
}

// CheckVulnernableFunc takes a vulnerability and an indexRecord and checks if the record is
Expand Down
Loading