core: X permissions is needed to destroy a global

This commit is contained in:
Wim Taymans 2023-07-27 13:26:47 +02:00
parent 212fe59530
commit 83efdf2340
2 changed files with 3 additions and 2 deletions

View file

@ -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);
};

View file

@ -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;