proot icon indicating copy to clipboard operation
proot copied to clipboard

How does proot support sysexit processing when seccomp starts? 

Open w296488320 opened this issue 2 years ago • 1 comments

                /* 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?

w296488320 avatar May 02 '22 13:05 w296488320

PTRACE_SYSCALL

fh2002 avatar Feb 22 '23 02:02 fh2002