Skip to content

Commit

Permalink
chore(ebpf): declare socketcall syscall correctly in header
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldtinoco committed Nov 24, 2023
1 parent ac84436 commit 0be3dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ebpf/c/common/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ statfunc struct pt_regs *get_task_pt_regs(struct task_struct *task)
#define SYSCALL_LANDLOCK_ADD_RULE 445
#define SYSCALL_LANDLOCK_RESTRICT_SELF 446
#define SYSCALL_PROCESS_MRELEASE 448

#define SYSCALL_SOCKETCALL 473 // x86 only
#define SYSCALL_SOCKETCALL 473

#elif defined(bpf_target_arm64)
#define SYSCALL_READ 63
Expand Down Expand Up @@ -291,6 +290,7 @@ statfunc struct pt_regs *get_task_pt_regs(struct task_struct *task)
#define SYSCALL_LANDLOCK_ADD_RULE 445
#define SYSCALL_LANDLOCK_RESTRICT_SELF 446
#define SYSCALL_PROCESS_MRELEASE 448
#define SYSCALL_SOCKETCALL UNDEFINED_SYSCALL
#endif

statfunc bool has_syscall_fd_arg(uint syscall_id)
Expand Down

0 comments on commit 0be3dd8

Please sign in to comment.