mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
tools: improve error reporting
Add better error reporting in the security context and pw-container. Add manpage for pw-container.
This commit is contained in:
parent
81181e255f
commit
69cc3832d4
5 changed files with 121 additions and 21 deletions
|
|
@ -7,6 +7,7 @@ Manual pages:
|
|||
- \subpage page_man_pw-cat_1
|
||||
- \subpage page_man_pw-cli_1
|
||||
- \subpage page_man_pw-config_1
|
||||
- \subpage page_man_pw-container_1
|
||||
- \subpage page_man_pw-dot_1
|
||||
- \subpage page_man_pw-dump_1
|
||||
- \subpage page_man_pw-jack_1
|
||||
|
|
|
|||
71
doc/dox/programs/pw-container.1.md
Normal file
71
doc/dox/programs/pw-container.1.md
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
\page page_man_pw-container_1 pw-container
|
||||
|
||||
The PipeWire container utility
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
**pw-container** \[*options*\] \[*PROGRAM*\]
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
Run a program in a new security context [1].
|
||||
|
||||
**pw-container** will create a new temporary unix socket and uses the
|
||||
SecurityContext extension API to create a server on this socket with
|
||||
the given properties. Clients created from this server socket will have
|
||||
the security properties attached to them.
|
||||
|
||||
This can be used to simulate the behaviour of Flatpak or other containers.
|
||||
|
||||
Without any arguments, **pw-container** simply creates the new socket
|
||||
and prints the address on stdout. Other PipeWire programs can then be run
|
||||
with `PIPEWIRE_REMOTE=<socket-address>` to connect through this security
|
||||
context.
|
||||
|
||||
When *PROGRAM* is given, the `PIPEWIRE_REMOTE` env variable will be set
|
||||
and *PROGRAM* will be passed to system(). Argument to *PROGRAM* need to be
|
||||
properly quoted.
|
||||
|
||||
# OPTIONS
|
||||
|
||||
\par -P | \--properties=VALUE
|
||||
Set extra context properties as a JSON object.
|
||||
|
||||
\par -r | \--remote=NAME
|
||||
The name the *remote* instance to connect to. If left unspecified, a
|
||||
connection is made to the default PipeWire instance.
|
||||
|
||||
\par -h | \--help
|
||||
Show help.
|
||||
|
||||
\par \--version
|
||||
Show version information.
|
||||
|
||||
# EXIT STATUS
|
||||
|
||||
If the security context was successfuly created, **pw-container** does
|
||||
not exit until terminated with a signal. It exits with status 0 if terminated by
|
||||
SIGINT or SIGTERM in this case.
|
||||
|
||||
Otherwise, it exits with nonzero exit status.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
**pw-container** 'pw-dump i 0'
|
||||
|
||||
Run pw-dump of the Core object. Note the difference in the object permissions
|
||||
when running pw-dump with and without **pw-container**.
|
||||
|
||||
**pw-container** 'pw-dump pw-dump'
|
||||
|
||||
Run pw-dump of itself. Note the difference in the Client security tokens when
|
||||
running pw-dump with and without **pw-container**.
|
||||
|
||||
# AUTHORS
|
||||
|
||||
The PipeWire Developers <$(PACKAGE_BUGREPORT)>;
|
||||
PipeWire is available from <$(PACKAGE_URL)>
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
[1] https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/security-context/security-context-v1.xml - Creating a security context
|
||||
|
|
@ -97,6 +97,7 @@ manpage_docs = [
|
|||
'dox/programs/pw-cat.1.md',
|
||||
'dox/programs/pw-cli.1.md',
|
||||
'dox/programs/pw-config.1.md',
|
||||
'dox/programs/pw-container.1.md',
|
||||
'dox/programs/pw-dot.1.md',
|
||||
'dox/programs/pw-dump.1.md',
|
||||
'dox/programs/pw-jack.1.md',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue