protocol-native: improve security context properties

Remove the engine_name, use pipewire.sec.engine in the properties. Make
some constants for this.

Document some more properties.
This commit is contained in:
Wim Taymans 2024-02-08 13:24:41 +01:00
parent d250f6932c
commit 477c6e8e90
5 changed files with 26 additions and 33 deletions

View file

@ -137,10 +137,11 @@ static void test_create(void)
static const struct spa_dict_item items[] = {
{ "pipewire.foo.bar", "baz" },
{ "pipewire.access", "restricted" },
{ PW_KEY_SEC_ENGINE, "org.flatpak" },
{ PW_KEY_ACCESS, "restricted" },
};
pw_security_context_create(info.sec, "org.flatpak",
pw_security_context_create(info.sec,
listen_fd, close_fd[1],
&SPA_DICT_INIT_ARRAY(items));