]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use mnt_want_write in compat_attrmulti ioctl
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:03:03 +0000 (02:03 +0100)
committerLachlan McIlroy <lachlan@sgi.com>
Mon, 19 Jan 2009 03:44:30 +0000 (14:44 +1100)
commita6efbf25e4e8307f1bae518ecddbe781d5084120
tree730e1c02ece82443f3dbe1314b88763bee4764d2
parent685ef7913d527a8b0cd721208cf936d495faa152
xfs: use mnt_want_write in compat_attrmulti ioctl

The compat version of the attrmulti ioctl needs to ask for and then
later release write access to the mount just like the native version,
otherwise we could potentially write to read-only mounts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
fs/xfs/linux-2.6/xfs_ioctl32.c