xfs: kill suid/sgid through the truncate path.
authorDave Chinner <dchinner@redhat.com>
Mon, 27 May 2013 06:38:25 +0000 (16:38 +1000)
committerBen Myers <bpm@sgi.com>
Thu, 30 May 2013 18:43:52 +0000 (13:43 -0500)
commit56c19e89b38618390addfc743d822f99519055c6
tree3aeb4998ac2f3b6529d149770c9759a26bec9eba
parent74137fff067961c9aca1e14d073805c3de8549bd
xfs: kill suid/sgid through the truncate path.

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.

cc: stable kernel <stable@vger.kernel.org>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_iops.c