fscrypt: new helper function - fscrypt_prepare_link()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 19:15:41 +0000 (12:15 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Jan 2018 00:17:32 +0000 (16:17 -0800)
commit4bd6179f5211556874f1ca722b8a5c682a65f138
tree9e99b4b466a85265cd1a2ab80907e49c34aaf4eb
parentb811faac637155e7ec5cbf71405ce3da1d4085f1
fscrypt: new helper function - fscrypt_prepare_link()

Introduce a helper function which prepares to link an inode into a
possibly-encrypted directory.  It handles setting up the target
directory's encryption key, then verifying that the link won't violate
the constraint that all files in an encrypted directory tree use the
same encryption policy.

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