> HOWEVER!!! man 2 clone:
> 
>       CLONE_PTRACE
>               If CLONE_PTRACE is specified, and the calling process is being
>               traced, then  trace  the  child also (see ptrace(2)).

That is accurate.

> OK,
> 
>       CLONE_UNTRACED (since Linux 2.5.46)
>               If CLONE_UNTRACED is specified, then a tracing process cannot
>               force CLONE_PTRACE on this child process.
> 
> ???

This is not.  Don't trust the man pages, match the actual kernel behavior.
The man pages are written by people who don't really understand the kernel,
and only once in a while ask me and you for clarification to make them
actually accurate.  I don't even look at them, I only look at the source
and the manifest behavior of the kernel on test cases.


Thanks,
Roland

Reply via email to