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

From: David Daney
Date: Tue Feb 22 2011 - 14:53:51 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/