xfs: kill suid/sgid through the truncate path.
authorDave Chinner <dchinner@redhat.com>
Mon, 27 May 2013 06:38:25 +0000 (16:38 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:48 +0000 (12:52 -0700)
commite08d9828d5d6925562f8c13bc6a70aab7eeddd9a
treeb9f5d81a01885d26fbb73951f10512092dbadc81
parent1532d7f86dba949ecd533c1f7a6bd03ed9069227
xfs: kill suid/sgid through the truncate path.

commit 2962f5a5dcc56f69cbf62121a7be67cc15d6940b upstream.

XFS has failed to kill suid/sgid bits correctly when truncating
files of non-zero size since commit c4ed4243 ("xfs: split
xfs_setattr") introduced in the 3.1 kernel. Fix it.

Fix it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_iops.c