From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 4FD1A6B0033 for ; Mon, 17 Oct 2011 15:01:03 -0400 (EDT) Date: Mon, 17 Oct 2011 20:55:26 +0200 From: Oleg Nesterov Subject: Re: [PATCH 6/X] uprobes: reimplement xol_add_vma() via install_special_mapping() Message-ID: <20111017185526.GA9244@redhat.com> References: <20110920115938.25326.93059.sendpatchset@srdronam.in.ibm.com> <20111015190007.GA30243@redhat.com> <20111016161359.GA24893@redhat.com> <20111017105054.GC11831@linux.vnet.ibm.com> <1318858455.7251.12.camel@moss-pluto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1318858455.7251.12.camel@moss-pluto> Sender: owner-linux-mm@kvack.org List-ID: To: Stephen Smalley Cc: Srikar Dronamraju , Peter Zijlstra , Eric Paris , Ingo Molnar , Steven Rostedt , Linux-mm , Linus Torvalds , Masami Hiramatsu , Hugh Dickins , Christoph Hellwig , Ananth N Mavinakayanahalli , Thomas Gleixner , Andi Kleen , Andrew Morton , Jim Keniston , Roland McGrath , LKML On 10/17, Stephen Smalley wrote: > > > Since selinux wasnt happy to have an anonymous vma attached, we would > > create a pseudo file using shmem_file_setup. However after comments from > > Peter and Stephan's suggestions we started using override_creds. Peter and > > Oleg suggest that we use install_special_mapping. > > > > Are you okay with using install_special_mapping instead of > > override_creds()? > > That's fine with me. Good. > But I'm still not clear on how you are controlling > the use of this facility from userspace, which is my primary concern. Yes, but just in case... Any security check in xol_add_vma() is pointless. The task is already "owned" by uprobes when xol_add_vma() is called. Oleg. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org