syzkaller: github.com/google/syzkaller/pkg/host Index | Files

package host

import "github.com/google/syzkaller/pkg/host"

Index

Package Files

features.go features_linux.go syscalls.go syscalls_linux.go

Constants

const (
    FeatureCoverage = iota
    FeatureComparisons
    FeatureExtraCoverage
    FeatureSandboxSetuid
    FeatureSandboxNamespace
    FeatureSandboxAndroid
    FeatureFault
    FeatureLeak
    FeatureNetInjection
    FeatureNetDevices
    FeatureKCSAN
    FeatureDevlinkPCI
)

func DetectSupportedSyscalls Uses

func DetectSupportedSyscalls(target *prog.Target, sandbox string) (
    map[*prog.Syscall]bool, map[*prog.Syscall]string, error)

DetectSupportedSyscalls returns list on supported and unsupported syscalls on the host. For unsupported syscalls it also returns reason as to why it is unsupported.

func Setup Uses

func Setup(target *prog.Target, features *Features, featureFlags csource.Features, executor string) error

Setup enables and does any one-time setup for the requested features on the host. Note: this can be called multiple times and must be idempotent.

type Feature Uses

type Feature struct {
    Name    string
    Enabled bool
    Reason  string
}

type Features Uses

type Features [numFeatures]Feature

func Check Uses

func Check(target *prog.Target) (*Features, error)

Check detects features supported on the host. Empty string for a feature means the feature is supported, otherwise the string contains the reason why the feature is not supported.

func (*Features) Supported Uses

func (features *Features) Supported() *Features

type KcovRemoteArg Uses

type KcovRemoteArg struct {
    TraceMode    uint32
    AreaSize     uint32
    NumHandles   uint32
    CommonHandle uint64
}

Package host imports 18 packages (graph) and is imported by 7 packages. Updated 2019-12-16. Refresh now. Tools for package owners.