summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2020-09-03 19:31:10 +0200
committerIlya Dryomov <idryomov@gmail.com>2023-08-24 11:24:35 +0200
commit79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd (patch)
treea838ae257469f7b6ca9d71aea662aefc5b36a831 /fs/binfmt_misc.c
parentceph: add support to readdir for encrypted names (diff)
downloadlinux-79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd.tar.xz
linux-79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd.zip
ceph: create symlinks with encrypted and base64-encoded targets
When creating symlinks in encrypted directories, encrypt and base64-encode the target with the new inode's key before sending to the MDS. When filling a symlinked inode, base64-decode it into a buffer that we'll keep in ci->i_symlink. When get_link is called, decrypt the buffer into a new one that will hang off i_link. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Xiubo Li <xiubli@redhat.com> Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de> Reviewed-by: Milind Changire <mchangir@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/binfmt_misc.c')
0 files changed, 0 insertions, 0 deletions