aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_itable.h
diff options
context:
space:
mode:
authorGravatar Dan Rosenberg <dan.j.rosenberg@gmail.com> 2010-06-24 12:07:47 +1000
committerGravatar Dave Chinner <david@fromorbit.com> 2010-06-24 12:07:47 +1000
commit1817176a86352f65210139d4c794ad2d19fc6b63 (patch)
tree59ccbcb634d87882fc899b0d21438c4bb86f8632 /fs/xfs/xfs_itable.h
parentLinux 2.6.35-rc3 (diff)
downloadlinux-1817176a86352f65210139d4c794ad2d19fc6b63.tar.gz
linux-1817176a86352f65210139d4c794ad2d19fc6b63.tar.bz2
linux-1817176a86352f65210139d4c794ad2d19fc6b63.zip
xfs: prevent swapext from operating on write-only files
This patch prevents user "foo" from using the SWAPEXT ioctl to swap a write-only file owned by user "bar" into a file owned by "foo" and subsequently reading it. It does so by checking that the file descriptors passed to the ioctl are also opened for reading. Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_itable.h')
0 files changed, 0 insertions, 0 deletions