]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Fix permissions checking for setflags ioctl()
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 May 2010 13:36:48 +0000 (14:36 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:11:14 +0000 (11:11 -0700)
commit644e1e4321b95542b5f16e65ff30976c2f634512
treea4dd0e02bbf33918f681551130476e748ce60759
parent6e3312e22f1cb180d7512d4717fad8145db2b436
GFS2: Fix permissions checking for setflags ioctl()

commit 7df0e0397b9a18358573274db9fdab991941062f 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>
fs/gfs2/file.c