]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't allow any modifications to an immutable file
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Jun 2019 01:41:41 +0000 (21:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jun 2019 01:41:41 +0000 (21:41 -0400)
commit162fa133459a7e0ac1cfa30e666f8b5a03f839cf
treefa46d95e468009f30162020ddb03322ebba1f803
parent2de43299e1057aad1226b006aab0b676aa1edb2a
ext4: don't allow any modifications to an immutable file

Don't allow any modifications to a file that's marked immutable, which
means that we have to flush all the writable pages to make the readonly
and we have to check the setattr/setflags parameters more closely.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/ioctl.c