commit | 3b0d8837a79ba7b7cc324d1f2b206c074e9c6182 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Fri Jan 05 10:45:02 2018 -0800 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Jan 11 22:06:19 2018 -0500 |
tree | c9ed6e1bd6c46f88e38f74d2efebf83705e03932 | |
parent | 76e81d6d50481144824237e6843122824b0a55c0 [diff] |
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>