]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
libcephfs_proxy: extend the protocol to support embedded permissions
authorXavi Hernandez <xhernandez@gmail.com>
Sat, 26 Jul 2025 18:13:38 +0000 (20:13 +0200)
committerXavi Hernandez <xhernandez@gmail.com>
Thu, 31 Jul 2025 09:14:56 +0000 (11:14 +0200)
commitcde17574cf4c0e81e7eeab9874d1f319fdf4d89a
tree2b1b51d5be79bb0464457b1c903520776b6be495
parent52fba7af44cb19be77bc28b9b95d52c78121c19b
libcephfs_proxy: extend the protocol to support embedded permissions

This patch adds the changes to the protocol definition to support
sending the user credentials along with the request that requires it.

Using protocol version 1, instead of sending a pointer to a previously
allocated UserPerm structure, the caller will embed the uid, gid and the
list of additional groups in the request itself.

Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
src/libcephfs_proxy/libcephfs_proxy.c
src/libcephfs_proxy/libcephfsd.c
src/libcephfs_proxy/proxy.h
src/libcephfs_proxy/proxy_link.h
src/libcephfs_proxy/proxy_requests.h