diff --git a/src/tracee/seccomp.c b/src/tracee/seccomp.c index d9aa8186..5201a3b4 100644 --- a/src/tracee/seccomp.c +++ b/src/tracee/seccomp.c @@ -1,5 +1,6 @@ #include /* E*, */ #include /* SIGSYS, */ +#include /* getpgid, */ #include "cli/note.h" #include "syscall/chain.h" @@ -40,6 +41,15 @@ int handle_seccomp_event(Tracee* tracee) { signal = 0; break; + case PR_getpgrp: + /* Query value with getpgid and set it as result. */ + poke_reg(tracee, SYSARG_RESULT, getpgid(tracee->pid)); + push_specific_regs(tracee, false); + + /* Swallow signal */ + signal = 0; + break; + case PR_set_robust_list: default: /* Set errno to -ENOSYS */