Skip to content

Commit 93b0749

Browse files
committed
fixup! fixup! oracle: omit ksplice-related vulnerabilities
Signed-off-by: Brad Lugo <[email protected]>
1 parent f487af5 commit 93b0749

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

oracle/parser.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ func (u *Updater) Parse(ctx context.Context, r io.ReadCloser) ([]*claircore.Vuln
9999
}
100100

101101
switch diff := cpes - kspliceCPEs; {
102+
case kspliceCPEs == 0:
103+
// Continue if there are no ksplice CPEs.
102104
case cpes == 0:
103-
// Continue if there are no CPEs.
105+
zlog.Warn(ctx).
106+
Str("def_title", def.Title).
107+
Msg("potential false positives: couldn't find CPEs to check for ksplice packages")
104108
case diff == 0:
105109
zlog.Debug(ctx).Msg("skipping userspace_ksplice vulnerabilities")
106110
return nil, nil

0 commit comments

Comments
 (0)