From e6bb767f0d527093f058c7941927a8b4043a4f4a Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Mon, 27 Aug 2012 13:32:15 -0700 Subject: [PATCH] --- yaml --- r: 324395 b: refs/heads/master c: 82aceae4f0d42f03d9ad7d1e90389e731153898f h: refs/heads/master i: 324393: 1c331909d8dd58c711140cc7973097467c5d2181 324391: aac0c226a78243c2c382f7c595273b1766170cb6 v: v3 --- [refs] | 2 +- trunk/Documentation/filesystems/debugfs.txt | 4 ++-- trunk/fs/debugfs/inode.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index c22c81ca78a8..b6ca6f3cfc6a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9db48aaf18d675ac41f550c9384154e0c00de2ef +refs/heads/master: 82aceae4f0d42f03d9ad7d1e90389e731153898f diff --git a/trunk/Documentation/filesystems/debugfs.txt b/trunk/Documentation/filesystems/debugfs.txt index 7a34f827989c..3a863f692728 100644 --- a/trunk/Documentation/filesystems/debugfs.txt +++ b/trunk/Documentation/filesystems/debugfs.txt @@ -15,8 +15,8 @@ Debugfs is typically mounted with a command like: mount -t debugfs none /sys/kernel/debug (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 +The debugfs root directory is accessible only to the root user by +default. To change 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. diff --git a/trunk/fs/debugfs/inode.c b/trunk/fs/debugfs/inode.c index 2c9fafbe8425..6393fd61d5c4 100644 --- a/trunk/fs/debugfs/inode.c +++ b/trunk/fs/debugfs/inode.c @@ -28,7 +28,7 @@ #include #include -#define DEBUGFS_DEFAULT_MODE 0755 +#define DEBUGFS_DEFAULT_MODE 0700 static struct vfsmount *debugfs_mount; static int debugfs_mount_count;