linux/fs/ext4
Eric Biggers ba63f23d69 fscrypto: require write access to mount to set encryption policy
Since setting an encryption policy requires writing metadata to the
filesystem, it should be guarded by mnt_want_write/mnt_drop_write.
Otherwise, a user could cause a write to a frozen or readonly
filesystem.  This was handled correctly by f2fs but not by ext4.  Make
fscrypt_process_policy() handle it rather than relying on the filesystem
to get it right.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Cc: stable@vger.kernel.org # 4.1+; check fs/{ext4,f2fs}
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Acked-by: Jaegeuk Kim <jaegeuk@kernel.org>
2016-09-10 01:18:57 -04:00
..
acl.c
acl.h
balloc.c The major change this cycle is deleting ext4's copy of the file system 2016-07-26 18:35:55 -07:00
bitmap.c
block_validity.c
dir.c
ext4.h
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c
extents_status.c
extents_status.h
file.c Merge branch 'akpm' (patches from Andrew) 2016-07-26 19:55:54 -07:00
fsync.c
hash.c
ialloc.c The major change this cycle is deleting ext4's copy of the file system 2016-07-26 18:35:55 -07:00
indirect.c
inline.c
inode.c Fix bugs that could cause kernel deadlocks or file system corruption 2016-08-29 12:37:11 -07:00
ioctl.c fscrypto: require write access to mount to set encryption policy 2016-09-10 01:18:57 -04:00
Kconfig
Makefile
mballoc.c Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-07-28 12:59:05 -07:00
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c The major change this cycle is deleting ext4's copy of the file system 2016-07-26 18:35:55 -07:00
page-io.c The major change this cycle is deleting ext4's copy of the file system 2016-07-26 18:35:55 -07:00
readpage.c Merge branch 'akpm' (patches from Andrew) 2016-07-26 19:55:54 -07:00
resize.c
super.c Fix bugs that could cause kernel deadlocks or file system corruption 2016-08-29 12:37:11 -07:00
symlink.c
sysfs.c
truncate.h
xattr.c ext4: avoid deadlock when expanding inode size 2016-08-11 12:38:55 -04:00
xattr.h ext4: reserve xattr index for the Hurd 2016-07-31 23:38:36 -04:00
xattr_security.c
xattr_trusted.c
xattr_user.c