]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: new helper function - fscrypt_prepare_link()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 19:15:41 +0000 (12:15 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Oct 2017 23:52:38 +0000 (19:52 -0400)
commita6736e7e8962130e7eb6080c0eb90e4f89872d9e
tree3934cd8c3a6f16ecbabd3b2909dba12bfde6b4ce
parentd4d5d8e8d7acde96896c77673a2c265fca801cf3
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