Barnabás Pőcze
17fcc9fc51
pw-container: use smaller path for temporary file
...
The automatically deduced size is sufficient. This
prevents a -Wformat-overflow warning.
2024-06-27 21:18:06 +00:00
Wim Taymans
6499b8572e
tests: don't crash when security context is not available
...
Fixes #3952
2024-04-15 16:41:03 +02:00
Wim Taymans
9c072832f0
tests: cleanup correctly to avoid leaks
2024-03-15 13:08:58 +01:00
Wim Taymans
df50952f48
tests: add right include for close/unlink/pipe2
2024-03-15 12:39:20 +01:00
Wim Taymans
76ce2f77a4
test: handle running without a server
...
The security context test requires a running server, exit gracefully for
now when there is server running, like in the CI.
2024-03-15 12:25:30 +01:00
Wim Taymans
81181e255f
tools: add pw-container tool
...
This makes a new custom security context with the given properties
and runs the program in this context.
2024-03-13 12:53:04 +01:00
Wim Taymans
477c6e8e90
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.
2024-03-13 12:53:04 +01:00
Wim Taymans
e7846fc12a
protocol-native: add security context API
...
Add a new extension that can create a server on a user provided socket
with user provided security properties.
This is mainly used in flatpaks that want to create and bind a pipewire
socket with specific permissions for the flatpak app.
The flatpak will also provide an fd that will be closed when the server
can be removed.
2024-03-13 12:53:04 +01:00