From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753400Ab1JQTBR (ORCPT ); Mon, 17 Oct 2011 15:01:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21440 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667Ab1JQTBQ (ORCPT ); Mon, 17 Oct 2011 15:01:16 -0400 Date: Mon, 17 Oct 2011 20:55:26 +0200 From: Oleg Nesterov 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 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> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.