From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758793Ab2CHWNK (ORCPT ); Thu, 8 Mar 2012 17:13:10 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:53393 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758727Ab2CHWNG (ORCPT ); Thu, 8 Mar 2012 17:13:06 -0500 Date: Fri, 9 Mar 2012 02:12:52 +0400 From: Cyrill Gorcunov To: Kees Cook Cc: Andy Lutomirski , Oleg Nesterov , KOSAKI Motohiro , Pavel Emelyanov , Tejun Heo , Andrew Morton , LKML , Will Drewry Subject: Re: [RFC] c/r: prctl: Add ability to set new mm_struct::exe_file v3 Message-ID: <20120308221252.GQ21812@moon> References: <20120308165112.GF21812@moon> <20120308194008.GJ21812@moon> <20120308200729.GL21812@moon> <20120308202136.GM21812@moon> <20120308215731.GP21812@moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Thu, Mar 08, 2012 at 02:03:13PM -0800, Kees Cook wrote: > > How about "file_is_exec" instead, since it doesn't (and likely > shouldn't) include the inode_permission(..., EXEC)? I'd like other > people's thoughts on this since maybe it's not needed and I instead > have accidentally derailed this patch with useless bike shedding. > Yup. Anyway, I'm leaving the former mm_struct::exe_file patch with EXEC test opencoded so we can do everything on top then. Cyrill