]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbde3368b26d92ad297d9bf7559f2f02ce2131ed
treef313ecd11c0756473231089700df3f5a01c55c54
parentac4cf9a0db2bb11cfe7d3ba196ff09dfb1aaaccc
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