From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759994AbXLUWgn (ORCPT ); Fri, 21 Dec 2007 17:36:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756564AbXLUWgf (ORCPT ); Fri, 21 Dec 2007 17:36:35 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:57390 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756344AbXLUWge (ORCPT ); Fri, 21 Dec 2007 17:36:34 -0500 Date: Fri, 21 Dec 2007 14:35:26 -0800 From: Greg KH To: Jan Engelhardt Cc: Willy Tarreau , Eric Paris , linux-kernel@vger.kernel.org, jmorris@namei.org, alan@redhat.com, chrisw@redhat.com, akpm@linux-foundation.org, linux-security-module@vger.kernel.org, solar@openwall.com, wtarreau@hera.kernel.org Subject: Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection Message-ID: <20071221223526.GC24780@kroah.com> References: <1198101545.6197.52.camel@localhost.localdomain> <1198269079.3732.3.camel@localhost.localdomain> <20071221211602.GA14811@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 21, 2007 at 11:04:19PM +0100, Jan Engelhardt wrote: > > On Dec 21 2007 22:16, Willy Tarreau wrote: > >Hi Jan, > > > >> >> >+config SECURITY_DEFAULT_MMAP_MIN_ADDR > >> >> >+ int "Low address space to protect from user allocation" > >> >> > >> >> Hm, should not this be 'hex'? > >> > > >> >I guess it could be, but the input for /proc/sys/vm/mmap_min_addr is > >> >base 10 as well > >> > >> sysfs is autobase, i.e. echo "0xb000" >/sys/foo will Do The Right Thing. > > > >yes but if you cat /proc/sys/vm/mmap_min_addr, it returns in base 10. > > sysfs should probably be tuned to output it in a preferred base. Again, this is sysctl, not sysfs. two very different things...