From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: Compat 32-bit syscall entry from 64-bit task!? [was: Re: [RFC,PATCH 1/2] seccomp_filters: system call filtering using BPF] Date: Mon, 23 Jan 2012 17:56:44 +0100 Message-ID: <20120123165644.GB13197@redhat.com> References: <49017bd7edab7010cd9ac767e39d99e4.squirrel@webmail.greenhost.nl> <20120118015013.GR11715@one.firstfloor.org> <20120118020453.GL7180@jl-vm1.vm.bytemark.co.uk> <20120118022217.GS11715@one.firstfloor.org> <20120118170006.GA16835@redhat.com> <20120118171210.GB16835@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Indan Zupancic , Andi Kleen , Jamie Lokier , Andrew Lutomirski , Will Drewry , linux-kernel@vger.kernel.org, keescook@chromium.org, john.johansen@canonical.com, serge.hallyn@canonical.com, coreyb@linux.vnet.ibm.com, pmoore@redhat.com, eparis@redhat.com, djm@mindrot.org, torvalds@linux-foundation.org, segoon@openwall.com, rostedt@goodmis.org, jmorris@namei.org, avi@redhat.com, penberg@cs.helsinki.fi, viro@zeniv.linux.org.uk, mingo@elte.hu, akpm@linux-foundation.org, khilman@ti.com, borislav.petkov@amd.com, amwang@redhat.com, ak@linux.intel.com, eric.dumazet@gmail.com, gregkh@suse.de, dhowells@redhat.com, daniel.lezcano@free.fr, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, olofj@chromium.org, mhalcrow@google.com, dlaor@redhat.com, Roland McGrath Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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.