android_kernel_motorola_sm6225/fs/crypto
Eric Biggers 94b26f3672 fscrypt: new helper function - fscrypt_prepare_rename()
Introduce a helper function which prepares to rename a file into a
possibly encrypted directory.  It handles loading the encryption keys
for the source and target directories if needed, and it handles
enforcing that if the target directory (and the source directory for a
cross-rename) is encrypted, then the file being moved into the directory
has the same encryption policy as its containing directory.

Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-10-18 19:52:38 -04:00
..
bio.c block: replace bi_bdev with a gendisk pointer and partitions index 2017-08-23 12:49:55 -06:00
crypto.c fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED() 2017-10-18 19:52:36 -04:00
fname.c fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED() 2017-10-18 19:52:36 -04:00
fscrypt_private.h fscrypt: clean up include file mess 2017-10-18 19:52:36 -04:00
hooks.c fscrypt: new helper function - fscrypt_prepare_rename() 2017-10-18 19:52:38 -04:00
Kconfig fscrypt: add support for AES-128-CBC 2017-06-23 20:05:07 -04:00
keyinfo.c fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED() 2017-10-18 19:52:36 -04:00
Makefile fscrypt: new helper function - fscrypt_file_open() 2017-10-18 19:52:37 -04:00
policy.c fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED() 2017-10-18 19:52:36 -04:00