xfs: update ctime and remove suid before cloning files
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 5 Oct 2018 09:05:41 +0000 (19:05 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 5 Oct 2018 09:05:41 +0000 (19:05 +1000)
commit7debbf015f580693680f3d2a3cef0cf99dcef688
tree2eb677c3e75003c186aeb04b3d02017db1139117
parent410fdc72b05afabef3afb51167085799dcc7b3cf
xfs: update ctime and remove suid before cloning files

Before cloning into a file, update the ctime and remove sensitive
attributes like suid, just like we'd do for a regular file write.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_reflink.c