]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
libcephfs_proxy: implement client side support for embedded perms
authorXavi Hernandez <xhernandez@gmail.com>
Sat, 26 Jul 2025 19:33:55 +0000 (21:33 +0200)
committerAnoop C S <anoopcs@cryptolab.net>
Fri, 15 Aug 2025 09:52:22 +0000 (15:22 +0530)
commitba58bb3657d0e6807dc25c88b9d4b631832f7517
treecdeb0ffa2bfd2daa3fc396ad8edccd9b15ed06fc
parentb5c62863f5ba0bd4633df962c1ec054e0ab7dc41
libcephfs_proxy: implement client side support for embedded perms

Implement the code to handle embedded perms or not depending on a
feature flag negotiated during connection.

If embedded permissions are enabled, ceph_userperm_new() will allocate a
local structure with the provided credentials instead of sending it to
the server. ceph_userperm_destroy() will just destroy the allocated
structure. If it's disabled, these function will work as any other
function, sending the request to the server.

Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
(cherry picked from commit 68505c3e3a3f7c00bcc6a0b2e90932bf52d09575)
src/libcephfs_proxy/libcephfs_proxy.c