linux/fs/crypto
Eric Biggers efcc7ae2c9 fscrypt: new helper function - fscrypt_file_open()
Add a helper function which prepares to open a regular file which may be
encrypted.  It handles setting up the file's encryption key, then
checking that the file's encryption policy matches that of its parent
directory (if the parent directory is encrypted).  It may be set as the
->open() method or it can be called from another ->open() method.

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:37 -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_file_open() 2017-10-18 19:52:37 -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