Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752111Ab1BZLvV (ORCPT ); Sat, 26 Feb 2011 06:51:21 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:63871 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777Ab1BZLvU (ORCPT ); Sat, 26 Feb 2011 06:51:20 -0500 From: Arnd Bergmann To: Steven Rostedt Subject: Re: [PATCH 2/2] debugfs: only allow root access to debugging interfaces Date: Sat, 26 Feb 2011 12:50:33 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-22-generic; KDE/4.3.2; x86_64; ; ) Cc: Henrique de Moraes Holschuh , Dan Carpenter , Greg KH , Kees Cook , 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 , Ian Campbell , Jarkko Sakkinen , Tejun Heo , Casey Schaufler References: <1298398198-18482-1-git-send-email-kees.cook@canonical.com> <20110222205847.GA1867@khazad-dum.debian.net> <20110224163844.GC888@home.goodmis.org> In-Reply-To: <20110224163844.GC888@home.goodmis.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102261250.33914.arnd@arndb.de> X-Provags-ID: V02:K0:/gZRZ3Vq4eZYxl5H9f6Z1WfoglNoQcwfrW8EGceXhJv 8POAp9EN/qGtZDen7WuXxIdhWdm/sVLA5Db7++K/RUj+n+7c43 L7YVyotZeLbo7x0gAUtHLXnFbUU9zGD6uuWfLismt8Nc8uKP1Q UfZzaXsa+BbHRVk0+J8OcKAcIG0c9Nimp0eJ/5gBAlr2RFuH6L Vfg1NX3eh6O7F8j2aUZtw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1534 Lines: 35 On Thursday 24 February 2011, Steven Rostedt wrote: > Currently things are still in a large flux, and I do not know how this > will play out. Although the changes in /debugfs/tracing has toned down a > lot, there's also the work going in on how to merge perf and ftrace. > This may start changes as well, and perhaps deprecate interfaces. I > don't know. > > Having debugfs as the main interface was not the goal of all this, but > we seemed to have just gotten stuck with it. Some time ago, I started a patch set to make it possible to unify a lot of the pseudo file systems like debugfs, configfs and others, and to also make it possible to trivially create another file_system_type, basically creating a new root inode in the same way that you'd create a new debugfs directory. The patch set is probably quite outdated now, and I currently don't have time to finish it, but I'd be happy to help someone else refresh it to get it upstream. Once that is done, you could move the tracing files and any other parts of debugfs that have evolved into a proper API into their own file systems without changing much code. This would in particular make it possible to mount the main debugfs root-only while you can have other rules for parts of it that have become real interfaces. Arnd -- 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/