From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx186.postini.com [74.125.245.186]) by kanga.kvack.org (Postfix) with SMTP id 37C146B005D for ; Tue, 2 Oct 2012 18:10:58 -0400 (EDT) Received: by ied10 with SMTP id 10so19922315ied.14 for ; Tue, 02 Oct 2012 15:10:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20120820180037.GV4232@outflux.net> Date: Tue, 2 Oct 2012 15:10:56 -0700 Message-ID: Subject: Re: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect From: Kees Cook Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, Al Viro , Andrew Morton , Ingo Molnar , Srikar Dronamraju , KOSAKI Motohiro , James Morris , Konstantin Khlebnikov , linux-mm@kvack.org On Tue, Oct 2, 2012 at 2:41 PM, Ard Biesheuvel wrote: > 2012/10/2 Kees Cook : >>> If desired, additional restrictions can be imposed by using the >>> security framework, e.g,, disallow non-final r-x mappings. >> >> Interesting; what kind of interface did you have in mind? > > The 'interface' we use is a LSM .ko which registers handlers for > mmap() and mprotect() that fail the respective invocations if the > passed arguments do not adhere to the policy. Seems reasonable. >>>> It seems like there needs to be a sensible way to detect that this flag is >>>> available, though. >>> >>> I am open for suggestions to address this. Our particular >>> implementation of the loader (on an embedded system) tries to set it >>> on the first mmap invocation, and stops trying if it fails. Not the >>> most elegant approach, I know ... >> >> Actually, that seems easiest. >> >> Has there been any more progress on this patch over-all? > > No progress. Al, Andrew, anyone? Thoughts on this? (First email is https://lkml.org/lkml/2012/8/14/448) -Kees -- Kees Cook Chrome OS Security -- 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/ . Don't email: email@kvack.org