Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753517Ab1BVTxs (ORCPT ); Tue, 22 Feb 2011 14:53:48 -0500 Received: from mail3.caviumnetworks.com ([12.108.191.235]:11899 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383Ab1BVTxr (ORCPT ); Tue, 22 Feb 2011 14:53:47 -0500 Message-ID: <4D641446.1080400@caviumnetworks.com> Date: Tue, 22 Feb 2011 11:53:42 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 MIME-Version: 1.0 To: Kees Cook CC: Alan Cox , Greg KH , linux-kernel@vger.kernel.org, Eugene Teo , Ralph Campbell , Roland Dreier , Sean Hefty , Hal Rosenstock , Jeremy Fitzhardinge , Konrad Rzeszutek Wilk , Alexander Viro , Miklos Szeredi , "J. Bruce Fields" , Neil Brown , Matthew Wilcox , James Morris , Stephen Smalley , Eric Paris , Nick Piggin , Arnd Bergmann , Ian Campbell , Jarkko Sakkinen , Tejun Heo , Casey Schaufler Subject: Re: [PATCH 2/2] debugfs: only allow root access to debugging interfaces References: <1298398198-18482-1-git-send-email-kees.cook@canonical.com> <1298398198-18482-2-git-send-email-kees.cook@canonical.com> <20110222181613.GU4000@outflux.net> <4D640133.9020901@caviumnetworks.com> <20110222184726.GV4000@outflux.net> <20110222191454.GB9991@suse.de> <20110222192532.GY4000@outflux.net> <20110222193418.773ccd4b@lxorguk.ukuu.org.uk> <20110222195018.GA4000@outflux.net> In-Reply-To: <20110222195018.GA4000@outflux.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Feb 2011 19:53:42.0529 (UTC) FILETIME=[350A5F10:01CBD2CA] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 750 Lines: 20 On 02/22/2011 11:50 AM, Kees Cook wrote: > On Tue, Feb 22, 2011 at 07:34:18PM +0000, Alan Cox wrote: [...] > >> Or of course you could just chmod it 0700 in the distro ! > > I'm trying to, but that involves a race condition since I can't control it > during the mount (nor set the default mode like I was trying to with the > patchset). tmpfs allows "mode=", but debugfs does not... > Someone skilled in the black arts of kernel programming might be able to add 'mode=' support to debugfs. David Daney -- 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/