helpers

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 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"`
}

Jump to

Keyboard shortcuts

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