Re: [PATCH 2/2] debugfs: only allow root access to debugging interfaces

David Daney
2011-02-22T19:53:48Z

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