mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
access: add access checks
Rework the access checks. Add owner field to more objects to do access control checks Make sure the object global is set in the object before signaling the new global.
This commit is contained in:
parent
d9bb116d27
commit
4cf59e3953
18 changed files with 230 additions and 200 deletions
|
|
@ -69,7 +69,7 @@ struct _PinosCore {
|
|||
PinosProperties *properties;
|
||||
|
||||
PinosType type;
|
||||
PinosAccess access;
|
||||
PinosAccess *access;
|
||||
|
||||
PinosMap objects;
|
||||
|
||||
|
|
@ -105,12 +105,13 @@ void pinos_core_destroy (PinosCore *core);
|
|||
void pinos_core_update_properties (PinosCore *core,
|
||||
const SpaDict *dict);
|
||||
|
||||
PinosGlobal * pinos_core_add_global (PinosCore *core,
|
||||
bool pinos_core_add_global (PinosCore *core,
|
||||
PinosClient *owner,
|
||||
uint32_t type,
|
||||
uint32_t version,
|
||||
void *object,
|
||||
PinosBindFunc bind);
|
||||
PinosBindFunc bind,
|
||||
PinosGlobal **global);
|
||||
|
||||
SpaResult pinos_global_bind (PinosGlobal *global,
|
||||
PinosClient *client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue