From a325d6439f319f4988428ae4741ee0eef9cd9b32 Mon Sep 17 00:00:00 2001 From: OriGlassman <39296766+OriGlassman@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:50:09 +0300 Subject: [PATCH] fix(ebpf): fix compilation warning sockfd_addr (#4254) --- pkg/ebpf/c/tracee.bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ebpf/c/tracee.bpf.c b/pkg/ebpf/c/tracee.bpf.c index ae78ae576daf..f88fe7dca3bd 100644 --- a/pkg/ebpf/c/tracee.bpf.c +++ b/pkg/ebpf/c/tracee.bpf.c @@ -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); @@ -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);