]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:48 +0000 (10:57 -0400)
commit7acbd73c63f2ace317abef386fd2568bfc28b82e
treeff1e6e618c5147bdc73524cc9e1cbeab69f1cc34
parentbb341a46872f05d92385ab4558b4fa5ecfa7af4b
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/btrfs/volumes.c