]> git.ipfire.org Git - thirdparty/kernel/stable.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:22:55 +0000 (11:22 -0700)
commit55442a2a4c899ee1201e2dca8f8c7a0dc4e59037
treeb1d255dba9a17d4be451e4bb8f46633452d7ab0d
parent94f98453eab3c95eaa40132b2e78cc4edc1bf48f
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