summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/debugfs.txt
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2012-01-25 11:52:28 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-26 20:28:49 +0100
commitd6e486868cde585842d55ba3b6ec57af090fc343 (patch)
tree37ec47c6e7a28ed21807899eae3e24dd38a3cc93 /Documentation/filesystems/debugfs.txt
parentEliminate get_driver() and put_driver() (diff)
downloadlinux-d6e486868cde585842d55ba3b6ec57af090fc343.tar.xz
linux-d6e486868cde585842d55ba3b6ec57af090fc343.zip
debugfs: add mode, uid and gid options
Cautious admins may want to restrict access to debugfs. Currently a manual chown/chmod e.g. in an init script is needed to achieve that. Distributions that want to make the mount options configurable need to add extra config files. By allowing to set the root inode's uid, gid and mode via mount options no such hacks are needed anymore. Instead configuration becomes straight forward via fstab. Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/filesystems/debugfs.txt')
-rw-r--r--Documentation/filesystems/debugfs.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt
index 6872c91bce35..4e2575873187 100644
--- a/Documentation/filesystems/debugfs.txt
+++ b/Documentation/filesystems/debugfs.txt
@@ -14,7 +14,10 @@ Debugfs is typically mounted with a command like:
mount -t debugfs none /sys/kernel/debug
-(Or an equivalent /etc/fstab line).
+(Or an equivalent /etc/fstab line).
+The debugfs root directory is accessible by anyone by default. To
+restrict access to the tree the "uid", "gid" and "mode" mount
+options can be used.
Note that the debugfs API is exported GPL-only to modules.