]> asedeno.scripts.mit.edu Git - linux.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)
commitd293c3e4e07334d761c88df9d68b3aa800a83dd9
tree55b1b5b5befe49d2bc031fd6fb6fbc6aa5fcd0fc
parentffcc41829ae043d0830bcd4536812fec7e098d93
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