]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Btrfs: add permission checks to the ioctls
authorChris Mason <chris.mason@oracle.com>
Mon, 5 Jan 2009 21:57:23 +0000 (16:57 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 5 Jan 2009 21:57:23 +0000 (16:57 -0500)
commite441d54de4fd97dd381f3e73636f5ba51ff4c7d9
treeb0d664ffaa89cec80e6aaac11977c7f6aa92ff63
parentb34b086c1c1d934c5314d46ba25ccfa9acc471ae
Btrfs: add permission checks to the ioctls

Only root can add/remove devices
Only root can defrag subtrees
Only files open for writing can be defragged
Only files open for writing can be the destination for a clone

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c
fs/btrfs/super.c