Skip to content

Commit

Permalink
fix(ebpf): fix compilation warning sockfd_addr (#4254)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriGlassman authored Aug 15, 2024
1 parent 6a5616f commit a325d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ebpf/c/tracee.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2739,7 +2739,7 @@ int BPF_KPROBE(trace_security_socket_bind)

struct pt_regs *task_regs = get_current_task_pt_regs();
int sockfd;
u32 sockfd_addr;
u64 sockfd_addr;
switch (p.event->context.syscall) {
case SYSCALL_BIND:
sockfd = get_syscall_arg1(p.event->task, task_regs, false);
Expand Down Expand Up @@ -2813,7 +2813,7 @@ int BPF_KPROBE(trace_security_socket_setsockopt)

struct pt_regs *task_regs = get_current_task_pt_regs();
int sockfd;
u32 sockfd_addr;
u64 sockfd_addr;
switch (p.event->context.syscall) {
case SYSCALL_SETSOCKOPT:
sockfd = get_syscall_arg1(p.event->task, task_regs, false);
Expand Down

0 comments on commit a325d64

Please sign in to comment.