pybind/ceph_volume_client: Preserve existing caps while authorize/deauthorize auth-id
authorKotresh HR <khiremat@redhat.com>
Thu, 26 Nov 2020 09:18:16 +0000 (14:48 +0530)
committerBastien Roucariès <rouca@debian.org>
Sat, 21 Oct 2023 16:42:26 +0000 (17:42 +0100)
commit5091ef537bc1d2a0fd685000808d7e900e4905e3
treee203299c1103220f0979edf81b25f066e3cd786a
parentee2735975df967550b9496d71e7b50016de98b6f
pybind/ceph_volume_client: Preserve existing caps while authorize/deauthorize auth-id

Authorize/Deauthorize used to overwrite the caps of auth-id which would
end up deleting existing caps. This patch fixes the same by retaining
the existing caps by appending or deleting the new caps as needed.

Fixes: https://tracker.ceph.com/issues/48555
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 47100e528ef77e7e82dc9877424243dc6a7e7533)

Origin: upstream, https://github.com/ceph/ceph/commit/eb2fa6934fc736f8abe6d9e237b0a14c9d877626

Gbp-Pq: Name CVE-2020-27781-3.patch
src/pybind/ceph_volume_client.py