From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: Compat 32-bit syscall entry from 64-bit task!? Date: Wed, 18 Jan 2012 20:44:20 +0100 Message-ID: <20120118194420.GW11715@one.firstfloor.org> References: <20120118015013.GR11715@one.firstfloor.org> <20120118020453.GL7180@jl-vm1.vm.bytemark.co.uk> <20120118022217.GS11715@one.firstfloor.org> <20120118193602.GV11715@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andi Kleen , Indan Zupancic , Jamie Lokier , Andrew Lutomirski , Oleg Nesterov , 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, segoon@openwall.com, rostedt@goodmis.org, jmorris@namei.org, scarybeasts@gmail.com, 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, Ro To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org > Umm. But the exact same is true of "LSM for custom jail". It's a > f*&^ing disaster, and it's a whole lot more complicated than ptrace. > > Plus it can't even do what ptrace does, so what's the point? There's It can securely enable syscall auditing which can catch all syscalls (however you only get race free memory arguments for the ones with LSM hooks at the right place). Really need both. I agree it's not easy to get tight (and also not pretty), but you have a lot better chance doing it this way than with ptrace. -Andi