Documentation ¶
Index ¶
- Constants
- Variables
- func GetLoaderSensor() *sensors.Sensor
- func LoadGenericTracepointSensor(bpfDir string, load *program.Program, verbose int) error
- func ReadArgBytes(r *bytes.Reader, index int, hasMaxData bool) (*api.MsgGenericKprobeArgBytes, error)
- func UprobeTestFunc()
- type EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) Build() (*v1alpha1.TracingPolicy, error)
- func (ksb *EnforcerSpecBuilder) MustBuild() *v1alpha1.TracingPolicy
- func (ksb *EnforcerSpecBuilder) MustYAML() string
- func (ksb *EnforcerSpecBuilder) WithDefaultOverride() *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithFmodRet() *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithKill(sig uint32) *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithMatchBinaries(bins ...string) *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithMultiKprobe() *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithOverrideReturn() *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithOverrideValue(ret int32) *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithSyscallList(calls ...string) *EnforcerSpecBuilder
- func (ksb *EnforcerSpecBuilder) WithoutMultiKprobe() *EnforcerSpecBuilder
- type OverrideMethod
Constants ¶
View Source
const ( CharBufErrorENOMEM = -1 CharBufErrorPageFault = -2 CharBufErrorTooLarge = -3 CharBufSavedForRetprobe = -4 )
View Source
const ( ListTypeInvalid = -1 ListTypeNone = 0 ListTypeSyscalls = 1 ListTypeGeneratedSyscalls = 2 ListTypeGeneratedFtrace = 3 Is32Bit = 0x80000000 )
View Source
const ( // Max length of message field of a Tracing Policy TpMaxMessageLen = 256 // Minimum length of message field ot a Tracing Policy // so it makes sense and we ensure it is not single // quoted character, we want double quoted string TpMinMessageLen = 2 )
View Source
const ( // Max tags of a Tracing Policy TpMaxTags = 16 TpMinTagLen = 2 TpMaxTagLen = 128 )
Variables ¶
View Source
var ( ErrMsgSyntaxLong = errors.New("message field is too long") ErrMsgSyntaxShort = errors.New("message field is too short") ErrMsgSyntaxEmpty = errors.New("message field is empty") ErrMsgSyntaxEscape = errors.New("message field escape failed") )
View Source
var ( ErrTagsSyntaxLong = errors.New("tags field: too many tags") ErrTagSyntaxShort = errors.New("too short") )
View Source
var (
MaxFilterIntArgs = 8
)
Functions ¶
func GetLoaderSensor ¶ added in v0.9.0
func ReadArgBytes ¶
func UprobeTestFunc ¶ added in v0.9.0
func UprobeTestFunc()
Types ¶
type EnforcerSpecBuilder ¶ added in v1.1.0
type EnforcerSpecBuilder struct {
// contains filtered or unexported fields
}
func NewEnforcerSpecBuilder ¶ added in v1.1.0
func NewEnforcerSpecBuilder(name string) *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) Build ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) Build() (*v1alpha1.TracingPolicy, error)
func (*EnforcerSpecBuilder) MustBuild ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) MustBuild() *v1alpha1.TracingPolicy
func (*EnforcerSpecBuilder) MustYAML ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) MustYAML() string
func (*EnforcerSpecBuilder) WithDefaultOverride ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithDefaultOverride() *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithFmodRet ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithFmodRet() *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithKill ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithKill(sig uint32) *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithMatchBinaries ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithMatchBinaries(bins ...string) *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithMultiKprobe ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithMultiKprobe() *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithOverrideReturn ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithOverrideReturn() *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithOverrideValue ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithOverrideValue(ret int32) *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithSyscallList ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithSyscallList(calls ...string) *EnforcerSpecBuilder
func (*EnforcerSpecBuilder) WithoutMultiKprobe ¶ added in v1.1.0
func (ksb *EnforcerSpecBuilder) WithoutMultiKprobe() *EnforcerSpecBuilder
type OverrideMethod ¶ added in v1.1.0
type OverrideMethod int
const ( OverrideMethodDefault OverrideMethod = iota OverrideMethodReturn OverrideMethodFmodRet OverrideMethodInvalid )
Click to show internal directories.
Click to hide internal directories.