github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/dashboard/app/linux_reporting.go (about)

     1  // Copyright 2022 syzkaller project authors. All rights reserved.
     2  // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  package main
     5  
     6  // The objective of this file is to collect config parts and routines useful for Linux bugs management,
     7  // thus reducing the size of the dashboard config file.
     8  
     9  // canBeVfsBug determines whether a bug could belong to the VFS subsystem itself.
    10  func canBeVfsBug(bug *Bug) bool {
    11  	for _, subsystem := range bug.LabelValues(SubsystemLabel) {
    12  		// The "vfs" one is left for compatibility with the older matching code.
    13  		if subsystem.Value == "vfs" || subsystem.Value == "fs" {
    14  			return true
    15  		}
    16  	}
    17  	return false
    18  }