GFS2: Fix permissions checking for setflags ioctl()

commit 7df0e0397b upstream.

We should be checking for the ownership of the file for which
flags are being set, rather than just for write access.

Reported-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Steven Whitehouse 2010-05-24 14:36:48 +01:00 • committed by Greg Kroah-Hartman
commit 55442a2a4c