Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758205AbXK0AjV (ORCPT ); Mon, 26 Nov 2007 19:39:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755016AbXK0AjN (ORCPT ); Mon, 26 Nov 2007 19:39:13 -0500 Received: from namei.org ([69.55.235.186]:50739 "EHLO us.intercode.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751261AbXK0AjM (ORCPT ); Mon, 26 Nov 2007 19:39:12 -0500 Date: Tue, 27 Nov 2007 11:38:24 +1100 (EST) From: James Morris X-X-Sender: jmorris@us.intercode.com.au To: Eric Paris cc: linux-kernel@vger.kernel.org, sds@tycho.nsa.gov, selinux@tycho.nsa.gov, alan@redhat.com, chrisw@redhat.com, hpa@zytor.com, akpm@linux-foundation.org Subject: Re: [PATCH 3/3-v2] security: allow capable check to permit mmap or low vm space In-Reply-To: <1196120866.16779.16.camel@localhost.localdomain> Message-ID: References: <1196120866.16779.16.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1136 Lines: 28 On Mon, 26 Nov 2007, Eric Paris wrote: > On a kernel with CONFIG_SECURITY but without an LSM which implements > security_file_mmap it is impossible for an application to mmap addresses > lower than mmap_min_addr. Based on a suggestion from a developer in the > openwall community this patch adds a check for CAP_SYS_RAWIO. It is > assumed that any process with this capability can harm the system a lot > more easily than writing some stuff on the zero page and then trying to > get the kernel to trip over itself. It also means that programs like X > on i686 which use vm86 emulation can work even with mmap_min_addr set. > > Signed-off-by: Eric Paris Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6.git#for-akpm If nobody hollers, I'll push it to Linus when the next merge window opens. - James -- James Morris - 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/