mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
Implement access control
Move send and dispatch functions to the implementation. This makes it possible to place an access check before sending and dispatching. Add module-access that allows to bind and notify on globals owned by the client.
This commit is contained in:
parent
a8964ca657
commit
ee0aa6a2ac
27 changed files with 819 additions and 220 deletions
|
|
@ -178,32 +178,31 @@ dump_object (PinosContext *context,
|
|||
pinos_context_get_core_info (context,
|
||||
dump_core_info,
|
||||
data);
|
||||
}
|
||||
if (type == context->uri.node) {
|
||||
} else if (type == context->uri.node) {
|
||||
pinos_context_get_node_info_by_id (context,
|
||||
id,
|
||||
dump_node_info,
|
||||
data);
|
||||
}
|
||||
if (type == context->uri.module) {
|
||||
} else if (type == context->uri.module) {
|
||||
pinos_context_get_module_info_by_id (context,
|
||||
id,
|
||||
dump_module_info,
|
||||
data);
|
||||
}
|
||||
if (type == context->uri.client) {
|
||||
} else if (type == context->uri.client) {
|
||||
pinos_context_get_client_info_by_id (context,
|
||||
id,
|
||||
dump_client_info,
|
||||
data);
|
||||
}
|
||||
if (type == context->uri.link) {
|
||||
} else if (type == context->uri.link) {
|
||||
pinos_context_get_link_info_by_id (context,
|
||||
id,
|
||||
dump_link_info,
|
||||
data);
|
||||
} else {
|
||||
printf ("\tid: %u\n", id);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue