Skip to content

Commit

Permalink
Add PR_epoll_wait SIGSYS handler
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbednarski committed Jun 4, 2024
1 parent 5cb69f7 commit 60485d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tracee/seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,15 @@ static int handle_seccomp_event_common(Tracee *tracee)
break;
}

case PR_epoll_wait:
{
set_sysnum(tracee, PR_epoll_pwait);
poke_reg(tracee, SYSARG_5, 0);
poke_reg(tracee, SYSARG_6, 0);
restart_syscall_after_seccomp(tracee);
break;
}

case PR_time:
{
time_t t = time(NULL);
Expand Down

0 comments on commit 60485d2

Please sign in to comment.