gadget

package
v0.0.0-...-f4342ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCMP_CMP_EQ        string = "SCMP_CMP_EQ"
	SCMP_CMP_NE        string = "SCMP_CMP_NE"
	SCMP_CMP_LT        string = "SCMP_CMP_LT"
	SCMP_CMP_LE        string = "SCMP_CMP_LE"
	SCMP_CMP_GT        string = "SCMP_CMP_GT"
	SCMP_CMP_GE        string = "SCMP_CMP_GE"
	SCMP_CMP_MASKED_EQ string = "SCMP_CMP_MASKED_EQ"
)

Variables

This section is empty.

Functions

func GenerateGadget

func GenerateGadget(profileName string, seccompProfile *seccomp.Seccomp) (map[string]string, error)

Types

type Arg

type Arg struct {
	Index    uint   `json:"index"`
	Value    uint64 `json:"value"`
	ValueTwo uint64 `json:"valueTwo"`
	Op       string `json:"op"`
}

type GadgetCodeTemplateData

type GadgetCodeTemplateData struct {
	Name           string
	DefaultAction  seccomp.Action
	Syscalls       map[string]Syscall
	RawTracepoints map[string]seccomp.Action
}

type MakefileTemplateData

type MakefileTemplateData struct {
	Name string
}

type Syscall

type Syscall struct {
	Rules       []SyscallRule
	ArgsIndices map[uint]uint
}

type SyscallRule

type SyscallRule struct {
	Action   seccomp.Action
	Args     []Arg
	Includes seccomp.Filter
	Excludes seccomp.Filter
	Errno    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL