mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-20 21:37:47 -04:00
filter-graph: relax LADSPA plugin loading
Make a new library.filter-path for the filter-graph that will filter and restrict the dlopen filenames (used for the LADSPA plugin only). By default this is false and so filter-chain can load from absolute paths without extra checks. Enable the extra checks for the pulse LADSPA modules and the audioconvert filter graphs because these allow loading LADSPA plugins into other processes. Fixes #5222
This commit is contained in:
parent
61431dcbc0
commit
98fdedf348
5 changed files with 22 additions and 8 deletions
|
|
@ -240,6 +240,7 @@ static int module_ladspa_sink_prepare(struct module * const module)
|
|||
} else {
|
||||
pw_properties_set(props, PW_KEY_NODE_DESCRIPTION, str);
|
||||
}
|
||||
pw_properties_set(props, "library.filter-path", "true");
|
||||
|
||||
if ((str = pw_properties_get(props, "master")) != NULL ||
|
||||
(str = pw_properties_get(props, "sink_master")) != NULL) {
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@ static int module_ladspa_source_prepare(struct module * const module)
|
|||
} else {
|
||||
pw_properties_set(props, PW_KEY_NODE_DESCRIPTION, str);
|
||||
}
|
||||
pw_properties_set(props, "library.filter-path", "true");
|
||||
|
||||
if ((str = pw_properties_get(props, "master")) != NULL ||
|
||||
(str = pw_properties_get(props, "source_master")) != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue