diff options
-rw-r--r-- | Documentation/filesystems/debugfs.txt | 4 | ||||
-rw-r--r-- | fs/debugfs/inode.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt index 7a34f827989..3a863f69272 100644 --- a/Documentation/filesystems/debugfs.txt +++ b/Documentation/filesystems/debugfs.txt | |||
@@ -15,8 +15,8 @@ Debugfs is typically mounted with a command like: | |||
15 | mount -t debugfs none /sys/kernel/debug | 15 | mount -t debugfs none /sys/kernel/debug |
16 | 16 | ||
17 | (Or an equivalent /etc/fstab line). | 17 | (Or an equivalent /etc/fstab line). |
18 | The debugfs root directory is accessible by anyone by default. To | 18 | The debugfs root directory is accessible only to the root user by |
19 | restrict access to the tree the "uid", "gid" and "mode" mount | 19 | default. To change access to the tree the "uid", "gid" and "mode" mount |
20 | options can be used. | 20 | options can be used. |
21 | 21 | ||
22 | Note that the debugfs API is exported GPL-only to modules. | 22 | Note that the debugfs API is exported GPL-only to modules. |
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 2c9fafbe842..6393fd61d5c 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/magic.h> | 28 | #include <linux/magic.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | 30 | ||
31 | #define DEBUGFS_DEFAULT_MODE 0755 | 31 | #define DEBUGFS_DEFAULT_MODE 0700 |
32 | 32 | ||
33 | static struct vfsmount *debugfs_mount; | 33 | static struct vfsmount *debugfs_mount; |
34 | static int debugfs_mount_count; | 34 | static int debugfs_mount_count; |