From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758559Ab2CHUHf (ORCPT ); Thu, 8 Mar 2012 15:07:35 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:54879 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753756Ab2CHUHe (ORCPT ); Thu, 8 Mar 2012 15:07:34 -0500 Date: Fri, 9 Mar 2012 00:07:29 +0400 From: Cyrill Gorcunov To: Andy Lutomirski Cc: Kees Cook , 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: <20120308200729.GL21812@moon> References: <20120308165112.GF21812@moon> <20120308194008.GJ21812@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 12:02:50PM -0800, Andy Lutomirski wrote: > > > > I can do that if Andrew agree. > > I'm a bit lost. nnp updates the MNT_NOSUID checks, not the MNT_NOEXEC > checks. (And the effects of the two flags is different in selinux for > historical reasons.) I'm sure I'm missing something. > Andy, I've no idea what nnp is ;) I was only about to gather those ISREG/MNT_NOEXEC to one helper since we indeed have a few places in kernel which do same thing in open-coded manner. Cyrill