Skip to content

Commit 674bd44

Browse files
committed
libcephfs_proxy: fix userperm pointer decoding for older protocols
The random data used to decode pointers coming from the old protocol was taken from the client instead of using the global_random data, which is the correct one. Fixes: https://tracker.ceph.com/issues/72800 Signed-off-by: Xavi Hernandez <[email protected]>
1 parent b5df01a commit 674bd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcephfs_proxy/libcephfsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static int32_t validate_perms(proxy_client_t *client, embedded_perms_t *embed,
8989

9090
if ((client->neg.v1.enabled & PROXY_FEAT_EMBEDDED_PERMS) == 0) {
9191
*embedded = false;
92-
return ptr_check(&client->random, embed->ptr, (void **)pperms);
92+
return ptr_check(&global_random, embed->ptr, (void **)pperms);
9393
}
9494

9595
perms = ceph_userperm_new(embed->uid, embed->gid, count,

0 commit comments

Comments
 (0)