Documentation
¶
Index ¶
Constants ¶
View Source
const ( ElfTypeBin = 1 ElfTypeSo = 2 )
View Source
const ( // BashEventTypeReadline indicates a readline event BashEventTypeReadline = 0 // BashEventTypeRetval indicates a return value event BashEventTypeRetval = 1 // BashEventTypeExitOrExec indicates an exit or exec event BashEventTypeExitOrExec = 2 // MaxDataSizeBash is the maximum line size from eBPF MaxDataSizeBash = 256 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
*config.BaseConfig
Bashpath string `json:"bashpath"` // Path to bash binary
Readline string `json:"readline"` // Path to libreadline.so
ErrNo int `json:"errno"`
ElfType uint8 `json:"elf_type"`
ReadlineFuncName string `json:"readline_func_name"`
}
Config extends BaseConfig with Bash-specific configuration.
type Event ¶
type Event struct {
BashType uint32
Pid uint32
Uid uint32
Line [MaxDataSizeBash]uint8
ReturnValue uint32
Comm [16]byte
AllLines string // Accumulated lines for multi-line commands
}
Event represents a bash command event from eBPF.
func (*Event) DecodeFromBytes ¶
DecodeFromBytes deserializes the event from raw eBPF data.
Click to show internal directories.
Click to hide internal directories.