]> git.karo-electronics.de Git - karo-tx-linux.git/commit
btrfs: Require CAP_SYS_ADMIN for filesystem rebalance
authorBen Hutchings <ben@decadent.org.uk>
Wed, 29 Dec 2010 14:55:03 +0000 (14:55 +0000)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:46 +0000 (13:54 -0700)
commitc5e74595507c13d213d716475d9c9fa061cd263c
tree38f37b832a4b07891dc66b636487aad65acbd094
parent445c6e0512acac0280f7c34ee756c51ed5b099cd
btrfs: Require CAP_SYS_ADMIN for filesystem rebalance

commit 6f88a4403def422bd8e276ddf6863d6ac71435d2 upstream.

Filesystem rebalancing (BTRFS_IOC_BALANCE) affects the entire
filesystem and may run uninterruptibly for a long time.  This does not
seem to be something that an unprivileged user should be able to do.

Reported-by: Aron Xu <happyaron.xu@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/btrfs/volumes.c