Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031204Ab2B2Pbj (ORCPT ); Wed, 29 Feb 2012 10:31:39 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:65042 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031177Ab2B2Pbi (ORCPT ); Wed, 29 Feb 2012 10:31:38 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of gorcunov@gmail.com designates 10.204.130.13 as permitted sender) smtp.mail=gorcunov@gmail.com; dkim=pass header.i=gorcunov@gmail.com Date: Wed, 29 Feb 2012 19:31:32 +0400 From: Cyrill Gorcunov To: Pavel Emelyanov Cc: LKML , Andrew Morton , KOSAKI Motohiro , Kees Cook , Tejun Heo , Oleg Nesterov Subject: Re: [RFC] c/r: prctl: Add ability to set new mm_struct::exe_file Message-ID: <20120229153132.GG11326@moon> References: <20120229151634.GE4796@moon> <4F4E42DB.2030507@parallels.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F4E42DB.2030507@parallels.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 24 On Wed, Feb 29, 2012 at 07:23:07PM +0400, Pavel Emelyanov wrote: > On 02/29/2012 07:16 PM, Cyrill Gorcunov wrote: > > Hi guys, > > > > at restore time we would like to have a way for /proc/pid/exe > > symlink recovering. So I thought extending prctl might be > > a good idea. > > > > Still maybe there some other good and 'right' way to do it, > > so I would like to gather opinions. > > If using the prctl for this, then taking a given file descriptor > (with fcheck) instead of taking path and opening it in kernel is > better. > Sounds like a plan. Thanks Pavel! Cyrill -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/