mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-access: recognize "allowed" as legacy alias for "unrestricted"
Previously, it was an alias for "unrestricted" so support that still if access.legacy=true.
This commit is contained in:
parent
442a208382
commit
08a4590070
1 changed files with 9 additions and 4 deletions
|
|
@ -50,6 +50,7 @@
|
||||||
* - If `access.legacy` is enabled, the value is:
|
* - If `access.legacy` is enabled, the value is:
|
||||||
*
|
*
|
||||||
* - `"flatpak"`: if client is a Flatpak client
|
* - `"flatpak"`: if client is a Flatpak client
|
||||||
|
* - `"unrestricted"`: if \ref PW_KEY_CLIENT_ACCESS client property is set to `"allowed"`
|
||||||
* - Value of \ref PW_KEY_CLIENT_ACCESS client property, if set
|
* - Value of \ref PW_KEY_CLIENT_ACCESS client property, if set
|
||||||
* - `"unrestricted"`: otherwise
|
* - `"unrestricted"`: otherwise
|
||||||
*
|
*
|
||||||
|
|
@ -199,12 +200,16 @@ context_check_access(void *data, struct pw_impl_client *client)
|
||||||
else
|
else
|
||||||
access = ACCESS_DEFAULT;
|
access = ACCESS_DEFAULT;
|
||||||
} else {
|
} else {
|
||||||
if (sandbox_flatpak)
|
if (sandbox_flatpak) {
|
||||||
access = ACCESS_FLATPAK;
|
access = ACCESS_FLATPAK;
|
||||||
else if ((str = pw_properties_get(props, PW_KEY_CLIENT_ACCESS)) != NULL)
|
} else if ((str = pw_properties_get(props, PW_KEY_CLIENT_ACCESS)) != NULL) {
|
||||||
access = str;
|
if (spa_streq(str, "allowed"))
|
||||||
else
|
access = ACCESS_UNRESTRICTED;
|
||||||
|
else
|
||||||
|
access = str;
|
||||||
|
} else {
|
||||||
access = ACCESS_UNRESTRICTED;
|
access = ACCESS_UNRESTRICTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle resolution */
|
/* Handle resolution */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue