]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: copy_file_range needs to strip setuid bits and update timestamps
authorAmir Goldstein <amir73il@gmail.com>
Wed, 5 Jun 2019 15:04:51 +0000 (08:04 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 9 Jun 2019 17:07:07 +0000 (10:07 -0700)
commit39f9837d9043959c0d3d967a3c615a6fa932e1d5
tree368b9c4126a747858b39d301f818b153019ce28b
parente22c8b4f1a9bcb6158bb14297a7891d767158f9d
fuse: copy_file_range needs to strip setuid bits and update timestamps

Like ->write_iter(), we update mtime and strip setuid of dst file before
copy and like ->read_iter(), we update atime of src file after copy.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Acked-by: Miklos Szeredi <miklos@szeredi.hu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/fuse/file.c