aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/linux/subsystems.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-06 17:57:07 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-10 14:34:44 +0100
commitc83ca2c9525c3d8309b3c10dc34a416b0b21017f (patch)
tree027add41010a33646d2af6c58858679ed7402a4a /pkg/subsystem/linux/subsystems.go
parent2c11641f1503869bc85a9560d94f8187f9665c92 (diff)
pkg/subsystem/linux: add a list of non-subsystem emails
Despite the automatic logic we already have, there are still a few emails that slip the check. For now let's keep them in a separate array, maybe later we'll figure out a pattern.
Diffstat (limited to 'pkg/subsystem/linux/subsystems.go')
-rw-r--r--pkg/subsystem/linux/subsystems.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/subsystem/linux/subsystems.go b/pkg/subsystem/linux/subsystems.go
index 49266a4a5..5653028ca 100644
--- a/pkg/subsystem/linux/subsystems.go
+++ b/pkg/subsystem/linux/subsystems.go
@@ -83,8 +83,15 @@ func (ctx *linuxCtx) groupByList() []*subsystemCandidate {
perList[list] = append(perList[list], record)
}
}
+ var exclude map[string]struct{}
+ if ctx.extraRules != nil {
+ exclude = ctx.extraRules.notSubsystemEmails
+ }
ret := []*subsystemCandidate{}
for email, list := range perList {
+ if _, skip := exclude[email]; skip {
+ continue
+ }
ret = append(ret, &subsystemCandidate{
commonEmail: email,
records: list,