]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/secret.c: fix key parsing when doing a remount 28610/head
authorLuis Henriques <lhenriques@suse.com>
Thu, 16 May 2019 10:50:56 +0000 (11:50 +0100)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 17 Jun 2019 20:05:12 +0000 (13:05 -0700)
commitef264d9b385759dc229a49d9c65f78039b2f8eaf
tree6e3220b09ed6d91182b1a2fee85624155b59c24f
parentca240efcd7e1b9521ea2304d24788733eabfe364
common/secret.c: fix key parsing when doing a remount

When doing a CephFS remount (-o remount) the secret is parsed from procfs
and we get '<hidden>' as a result and the mount will fail with:

  secret is not valid base64: Invalid argument.
  adding ceph secret key to kernel failed: Invalid argument.

As the kernel already have the key, we simply need to use it.

Fixes: https://tracker.ceph.com/issues/39951
Signed-off-by: Luis Henriques <lhenriques@suse.com>
(cherry picked from commit f44516bcde8d48ef5dca4f92017d1e241eb8e26e)
src/common/secret.c