]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/secret.c: fix key parsing when doing a remount
authorLuis Henriques <lhenriques@suse.com>
Thu, 16 May 2019 10:50:56 +0000 (11:50 +0100)
committerLuis Henriques <lhenriques@suse.com>
Mon, 27 May 2019 08:23:42 +0000 (09:23 +0100)
commitf44516bcde8d48ef5dca4f92017d1e241eb8e26e
treeaf399aed71fe3eb0e9f842d973a2d9d734f2b78f
parentf1ea02970b4bae5a5e5d1bccacb3c8ab45372a5e
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>
src/common/secret.c