aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/linux_reporting.go
blob: 8ddffd43334c16569166ae08be9fcdc153f09490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2022 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

package main

// The objective of this file is to collect config parts and routines useful for Linux bugs management,
// thus reducing the size of the dashboard config file.

// canBeVfsBug determines whether a bug could belong to the VFS subsystem itself.
func canBeVfsBug(bug *Bug) bool {
	for _, subsystem := range bug.LabelValues(SubsystemLabel) {
		// The "vfs" one is left for compatibility with the older matching code.
		if subsystem.Value == "vfs" || subsystem.Value == "fs" {
			return true
		}
	}
	return false
}