]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix BTRFS_IOC_SUBVOL_SETFLAGS ioctl
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 16 Feb 2011 06:06:34 +0000 (06:06 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Feb 2011 20:37:58 +0000 (15:37 -0500)
commit2b66a198481dd808f923e160b105ba06839c37dd
treeba01c2bb5381ab9a34c4152ed4dd83c1797f780c
parentca79c5024e28800cab5c86981e4fd782eaafeaa1
Btrfs: Fix BTRFS_IOC_SUBVOL_SETFLAGS ioctl

- Check user-specified flags correctly
- Check the inode owership
- Search root item in root tree but not fs tree

Reported-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c