proot
proot copied to clipboard
How does proot support sysexit processing when seccomp starts?
/* Restore tracee's stack pointer now if it won't hit
* the sysexit stage (i.e. when seccomp is enabled and
* there's nothing else to do).
* */
if (tracee->restart_how == PTRACE_CONT) {
suppressed_syscall_status = tracee->status;
tracee->status = 0;
poke_reg(tracee, STACK_POINTER, peek_reg(tracee, ORIGINAL, STACK_POINTER));
}
I don't know why in seccomp mode to put the ( tracee->status = 0;) This may not execute sysexit. Does it not support sysexit when seccomp is enabled?
PTRACE_SYSCALL