btrfs: fix perms on demonstration debugfs interface
authorEric Sandeen <sandeen@redhat.com>
Wed, 31 Aug 2016 21:49:29 +0000 (16:49 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 15:59:49 +0000 (17:59 +0200)
commit07f6a480436595394a06a69d0ebc18fef6736197
treef313ecd11c0756473231089700df3f5a01c55c54
parentc79a175175d5a908a7c4d923d44f36808f56536e
btrfs: fix perms on demonstration debugfs interface

btrfs provides a helpful demonstration of how to export
a global variable via debugfs; however, it is unique among
other debugfs files in that it is world-writable, which causes
some concern to people who are not familiar with its purpose.

Fix it so that it is only user-writable.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c