mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
permissions: use current_client for security checks
Don't pass around the client object but keep track of the current client in the core object. This way we don't need to add a client argument to functions and can check security when needed.
This commit is contained in:
parent
ab099d09dd
commit
ff17fb68b5
10 changed files with 32 additions and 21 deletions
|
|
@ -233,7 +233,7 @@ static int module_init(struct pw_module *module, struct pw_properties *propertie
|
|||
|
||||
spa_list_init(&impl->node_list);
|
||||
|
||||
pw_core_for_each_global(core, NULL, on_global, impl);
|
||||
pw_core_for_each_global(core, on_global, impl);
|
||||
|
||||
pw_core_add_listener(core, &impl->core_listener, &core_events, impl);
|
||||
pw_module_add_listener(module, &impl->module_listener, &module_events, impl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue