Re: Compat 32-bit syscall entry from 64-bit task!? [was: Re:[RFC,PATCH 1/2] seccomp_filters: system call filtering using BPF]

From: Oleg Nesterov
Date: Mon Jan 23 2012 - 12:04:23 EST


On 01/18, Chris Evans wrote:
>
> Thanks, Oleg. Seems like this would be a nice change to have. As we
> can see, people do use ptrace() as a security technology.

OK, I'll send it.

> With this in place, you can also (where possible) set up the tracee
> with PR_SET_PDEATHSIG==SIGKILL. And then, you have defences again
> either of the tracer or tracee dying from a stray SIGKILL.

This can only help if the tracer is the natural parent, is it enough?

Indan suggested PTRACE_O_SIGKILL_ON_DEATH, perhaps it makes sense.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/