]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: check for read permission on src file in the clone ioctl
authorDan Rosenberg <dan.j.rosenberg@gmail.com>
Sat, 15 May 2010 15:27:37 +0000 (11:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 May 2010 21:32:09 +0000 (14:32 -0700)
commit8493589f15804898970d9cfb650ea6d86f339fe3
tree7ac48556add6435a0ab5108510a848b7bdf3146a
parent893bb29ec037b10287d127d037fd77e61b397420
Btrfs: check for read permission on src file in the clone ioctl

commit 5dc6416414fb3ec6e2825fd4d20c8bf1d7fe0395 upstream.

The existing code would have allowed you to clone a file that was
only open for writing

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/ioctl.c