]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Make sure the MOVE_EXT ioctl can't overwrite append-only files
authorTheodore Ts'o <tytso@mit.edu>
Thu, 3 Jun 2010 02:04:39 +0000 (22:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Jun 2010 02:04:39 +0000 (22:04 -0400)
commitf5519ceab6df57d7046510eaf94b3c74b219ed39
tree471ac26edd4fbdfda5a3b091b9d583d579c882cb
parent3173211281a3ce3c9872737cb9c520fbba09227a
ext4: Make sure the MOVE_EXT ioctl can't overwrite append-only files

Dan Roseberg has reported a problem with the MOVE_EXT ioctl.  If the
donor file is an append-only file, we should not allow the operation
to proceed, lest we end up overwriting the contents of an append-only
file.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Dan Rosenberg <dan.j.rosenberg@gmail.com>
fs/ext4/move_extent.c