]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: new helper function - fscrypt_require_key()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 19:15:39 +0000 (12:15 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Oct 2017 23:52:37 +0000 (19:52 -0400)
commitc872af2764494cbd80694a92649f1b79dac4028e
tree55b1b5b5befe49d2bc031fd6fb6fbc6aa5fcd0fc
parent4b6f13bb787317cc662e57b4f60fbbf0f6eee0c2
fscrypt: new helper function - fscrypt_require_key()

Add a helper function which checks if an inode is encrypted, and if so,
tries to set up its encryption key.  This is a pattern which is
duplicated in multiple places in each of ext4, f2fs, and ubifs --- for
example, when a regular file is asked to be opened or truncated.

Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/fscrypt.h