Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbZFCTmo (ORCPT ); Wed, 3 Jun 2009 15:42:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754217AbZFCTm3 (ORCPT ); Wed, 3 Jun 2009 15:42:29 -0400 Received: from smtp3.ultrahosting.com ([74.213.175.254]:43014 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751091AbZFCTm2 (ORCPT ); Wed, 3 Jun 2009 15:42:28 -0400 Date: Wed, 3 Jun 2009 15:42:13 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Eric Paris cc: Linus Torvalds , "Larry H." , Alan Cox , linux-mm@kvack.org, Rik van Riel , linux-kernel@vger.kernel.org, pageexec@freemail.hu Subject: Re: Security fix for remapping of page 0 (was [PATCH] Change ZERO_SIZE_PTR to point at unmapped space) In-Reply-To: <7e0fb38c0906031214lf4a2ed2x688da299e8cb1034@mail.gmail.com> Message-ID: References: <20090530230022.GO6535@oblivion.subreption.com> <20090603182949.5328d411@lxorguk.ukuu.org.uk> <20090603180037.GB18561@oblivion.subreption.com> <20090603183939.GC18561@oblivion.subreption.com> <7e0fb38c0906031214lf4a2ed2x688da299e8cb1034@mail.gmail.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 794 Lines: 22 On Wed, 3 Jun 2009, Eric Paris wrote: > NAK with SELinux on you now need both the SELinux mmap_zero > permission and the CAP_SYS_RAWIO permission. Previously you only > needed one or the other, depending on which was the predominant > LSM..... CAP_SYS_RAWIO is checked so you only need to check for mmap_zero in SELinux. > Even if you want to argue that I have to take CAP_SYS_RAWIO in the > SELinux case what about all the other places? do_mremap? do_brk? > expand_downwards? brk(0) would free up all the code? The others could be added. -- 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/