mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
Use more fine grained access control
Make it possible to add more permissions to an object than just visible or not. Pass these permissions to the client. This way we can make a difference between being able to see and read, modify or query an object. More permissions can be added later when needed. Because the permissions is set on the resource by the access control module, the implementations can check if the right permission is set before doing anything.
This commit is contained in:
parent
c59bc457d4
commit
4f08dbcd24
14 changed files with 110 additions and 59 deletions
|
|
@ -328,7 +328,7 @@ static const struct pw_node_events node_events = {
|
|||
};
|
||||
|
||||
|
||||
static void registry_event_global(void *object, uint32_t id, uint32_t parent_id,
|
||||
static void registry_event_global(void *object, uint32_t id, uint32_t parent_id, uint32_t permissions,
|
||||
uint32_t type, uint32_t version)
|
||||
{
|
||||
struct pw_registry_proxy *registry = object;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue