Re: [PATCH 37] introduce ptrace_event->ev_options

2009-09-17 Thread Roland McGrath
> When the tracee resumes from TASK_TRACED, context->options can be changed. > > Introduce ptrace_event->ev_options. If a callback sets ->ev_options != 0, > do_ptrace_resume() checks that context->options matches or discards the > event. IMHO this hair is a pretty clear indication that the "queue

[PATCH 37] introduce ptrace_event->ev_options

2009-09-15 Thread Oleg Nesterov
When the tracee resumes from TASK_TRACED, context->options can be changed. Introduce ptrace_event->ev_options. If a callback sets ->ev_options != 0, do_ptrace_resume() checks that context->options matches or discards the event. This will be used to validate PTRACE_EVENT_VFORK_DONE and SYSCALL_EXI