helpers

package
v0.0.0-...-a8f7581 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddrStructFromArg

func GetAddrStructFromArg(addrArg tracee.Argument, connectData *ConnectAddrData) error

GetAddrStructFromArg populates connectData with the value of the addrArg

func GetTraceeArgumentByName

func GetTraceeArgumentByName(event tracee.Event, argName string) (tracee.Argument, error)

GetTraceeArgumentByName fetches the argument in event with `Name` that matches argName

func IsFileWrite

func IsFileWrite(flags string) bool

IsFileWrite returns whether or not the passed file permissions string contains o_wronly or o_rdwr

Types

type ConnectAddrData

type ConnectAddrData struct {
	SaFamily string `json:"sa_family"`
	SinPort  string `json:"sin_port"`
	SinAddr  string `json:"sin_addr"`
	SinPort6 string `json:"sin6_port"`
	SinAddr6 string `json:"sin6_addr"`
}

Directories

Path Synopsis
rego

Jump to

Keyboard shortcuts

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