fscrypt: new helper function - fscrypt_get_symlink()
authorEric Biggers <ebiggers@google.com>
Fri, 5 Jan 2018 18:45:02 +0000 (10:45 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 09:40:15 +0000 (02:40 -0700)
commit0063988cc044b8c77bfe4a7f1b82b4cdae6f10de
tree8c5e29b4bedf639b1839031ab3a772eefcc0e9c3
parent48a0375c8889b32eeae7f7e111b44d3f4e61625d
fscrypt: new helper function - fscrypt_get_symlink()

Filesystems also have duplicate code to support ->get_link() on
encrypted symlinks.  Factor it out into a new function
fscrypt_get_symlink().  It takes in the contents of the encrypted
symlink on-disk and provides the target (decrypted or encoded) that
should be returned from ->get_link().

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