Skip to content

Commit

Permalink
se PT_REGS_PARM3 for retcode in inet_csk_accept
Browse files Browse the repository at this point in the history
Signed-off-by: daemon1024 <[email protected]>
  • Loading branch information
daemon1024 committed May 16, 2023
1 parent 35434b6 commit 1e06a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KubeArmor/BPF/system_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ int kretprobe__inet_csk_accept(struct pt_regs *ctx)
u64 types = ARG_TYPE0(STR_T) | ARG_TYPE1(SOCKADDR_T);
init_context(&context);
context.argnum = get_arg_num(types);
context.retval = PT_REGS_RC(ctx);
context.retval = PT_REGS_PARM3(ctx);

if (context.retval >= 0 && drop_syscall(_NETWORK_PROBE))
{
Expand Down

0 comments on commit 1e06a38

Please sign in to comment.