]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ceph: add base64 endcoding routines for encrypted names
authorLuís Henriques <lhenriques@suse.de>
Mon, 18 Apr 2022 13:59:56 +0000 (14:59 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Aug 2023 07:01:48 +0000 (09:01 +0200)
commit64e86f632bf148d007946c52781781eb8380d416
treed1f849ac0190eaa1fadb531ec54d3335ac0c36e5
parentb7b53361c80b16ad461dbcb8a93e6e37578bac9b
ceph: add base64 endcoding routines for encrypted names

The base64url encoding used by fscrypt includes the '_' character, which
may cause problems in snapshot names (if the name starts with '_').
Thus, use the base64 encoding defined for IMAP mailbox names (RFC 3501),
which uses '+' and ',' instead of '-' and '_'.

Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/crypto.c
fs/ceph/crypto.h