Skip to content

Commit

Permalink
fix(ebpf): fix hidden_kernel_module not found symbol (#3834)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriGlassman committed Feb 22, 2024
1 parent c53f203 commit 5cb5760
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 128 deletions.
9 changes: 9 additions & 0 deletions pkg/ebpf/bpf_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const (
BPFLogIDGetCurrentComm // BPF_LOG_ID_GET_CURRENT_COMM
BPFLogIDTailCall // BPF_LOG_ID_TAIL_CALL
BPFLogIDMemRead // BPF_LOG_ID_MEM_READ

// hidden kernel module functions
BPFLogIDHidKerMod
)

var stringMap = map[BPFLogType]string{
Expand All @@ -43,6 +46,9 @@ var stringMap = map[BPFLogType]string{
BPFLogIDGetCurrentComm: "BPF_LOG_ID_GET_CURRENT_COMM",
BPFLogIDTailCall: "BPF_LOG_ID_TAIL_CALL",
BPFLogIDMemRead: "BPF_LOG_ID_MEM_READ",

// hidden kernel module functions
BPFLogIDHidKerMod: "BPF_LOG_ID_HID_KER_MOD",
}

var errorMap = map[BPFLogType]string{
Expand All @@ -58,6 +64,9 @@ var errorMap = map[BPFLogType]string{
BPFLogIDGetCurrentComm: "Failed to get current command",
BPFLogIDTailCall: "Failed to tail call",
BPFLogIDMemRead: "Failed to read memory",

// hidden kernel module functions
BPFLogIDHidKerMod: "Failure in hidden kernel module seeker logic",
}

func (b BPFLogType) String() string {
Expand Down
Loading

0 comments on commit 5cb5760

Please sign in to comment.