mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-09 23:50:15 -04:00
pulse-server: block arbitrary filter-graphs
Add a special 'blocked' spa-libs value that returns EPERM when trying to load the factory. Only allow loading the LADSPA filter.graph nodes for the LADSPA sink and source. The most problematic part is the pipe filter, that allows it to spawn arbirary programs as part of the filter.graph. You can add a filter-graph to any stream with stream_props.
This commit is contained in:
parent
e3f75314be
commit
a4e2856d06
3 changed files with 11 additions and 2 deletions
|
|
@ -22,6 +22,12 @@ context.properties = {
|
|||
context.spa-libs = {
|
||||
audio.convert.* = audioconvert/libspa-audioconvert
|
||||
support.* = support/libspa-support
|
||||
# because the pulse server allows dynamic loading of streams and modules
|
||||
# inside the server, we must be careful with the filter-graph. Only allow
|
||||
# LADSPA filters.
|
||||
filter.graph.plugin.ladspa = filter-graph/libspa-filter-graph-plugin-ladspa
|
||||
filter.graph.plugin.* = blocked
|
||||
filter.graph = filter-graph/libspa-filter-graph
|
||||
}
|
||||
|
||||
context.modules = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue