mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -204,7 +204,7 @@ static void try_link_port(struct pw_node *node, struct pw_port *port, struct nod
|
|||
|
||||
pw_log_debug("module %p: try to find and link to node '%d'", impl, path_id);
|
||||
|
||||
target = pw_core_find_port(impl->core, owner, port, path_id, NULL, 0, NULL, &error);
|
||||
target = pw_core_find_port(impl->core, port, path_id, NULL, 0, NULL, &error);
|
||||
if (target == NULL)
|
||||
goto error;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue