linux/fs/crypto
Eric Biggers 32c3cf028e fscrypt: new helper function - fscrypt_prepare_lookup()
Introduce a helper function which prepares to look up the given dentry
in the given directory.  If the directory is encrypted, it handles
loading the directory's encryption key, setting the dentry's ->d_op to
fscrypt_d_ops, and setting DCACHE_ENCRYPTED_WITH_KEY if the directory's
encryption key is available.

Note: once all filesystems switch over to this, we'll be able to move
fscrypt_d_ops and fscrypt_set_encrypted_dentry() to fscrypt_private.h.

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_lookup() 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