]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW: Getting an RGW service Segfault when assigning an attribute to an IAM role
authorShreyansh Sancheti <ssanchet@redhat.com>
Mon, 29 Jan 2024 18:03:07 +0000 (13:03 -0500)
committerShreyansh Sancheti <ssanchet@redhat.com>
Wed, 7 Feb 2024 06:17:33 +0000 (01:17 -0500)
commite5a85982f08532db11ea912bac1f2eaaff01ab24
treec9e917575a9f8b349475aad7822bab67d0c57d04
parentac9e76f852286ead3a3ec33b2b0da62083e1c3d2
RGW: Getting an RGW service Segfault when assigning an attribute to an IAM role

The current implementation of RGWTagRole, which inherits RGWRestRole::verify_permission() from its base class, encounters a critical issue when loading RGWRole from storage and initializing the RGWRestRole::_role member variable.To address this issue and ensure that errors in initialization are appropriately handled, it is proposed to separate the initialization logic from the permission-checking logic.

Fixes: https://tracker.ceph.com/issues/64232
Signed-off-by: Shreyansh Sancheti <ssanchet@redhat.com>
src/rgw/rgw_rest_role.cc
src/rgw/rgw_rest_role.h