From 83efdf2340534dcf7215d9b75740db1b39b0fff4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 27 Jul 2023 13:26:47 +0200 Subject: [PATCH] core: X permissions is needed to destroy a global --- src/pipewire/core.h | 3 ++- src/pipewire/link.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pipewire/core.h b/src/pipewire/core.h index d2ad0c238..6afbc6428 100644 --- a/src/pipewire/core.h +++ b/src/pipewire/core.h @@ -476,7 +476,8 @@ struct pw_registry_methods { * * Try to destroy the global object. * - * \param id the global id to destroy + * \param id the global id to destroy. The client needs X permissions + * on the global. */ int (*destroy) (void *object, uint32_t id); }; diff --git a/src/pipewire/link.h b/src/pipewire/link.h index 26b929436..ef96dfe21 100644 --- a/src/pipewire/link.h +++ b/src/pipewire/link.h @@ -31,7 +31,7 @@ extern "C" { #define PW_TYPE_INTERFACE_Link PW_TYPE_INFO_INTERFACE_BASE "Link" -#define PW_LINK_PERM_MASK PW_PERM_R +#define PW_LINK_PERM_MASK PW_PERM_R | PW_PERM_X #define PW_VERSION_LINK 3 struct pw_link;