]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: new helper function - fscrypt_get_symlink()
authorEric Biggers <ebiggers@google.com>
Fri, 5 Jan 2018 18:45:02 +0000 (10:45 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Jan 2018 03:06:19 +0000 (22:06 -0500)
commit1d0117e1fe112b7f8c2a7eca34b1b881fa17b74d
treec9ed6e1bd6c46f88e38f74d2efebf83705e03932
parent4df6898cc4dbaeb3c75f533bfdd05ee0caf2991a
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