proot-me / proot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux
https://proot-me.github.io
GNU General Public License v2.0
1.97k stars 372 forks source link

Fix handling of receiving seccomp after normal ptrace event #298

Closed yuyichao closed 2 years ago

yuyichao commented 2 years ago

If we aren't interested in the exit event, in addition to continuing using PTRACE_CONT. We also need to set the status to 0 so that we won't be waiting for a sysexit next.

This was causing us to skip many syscall enters...