LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pw-container

Run apps in isolated PipeWire security contexts

TLDR

Create a new security context and print its socket address
$ pw-container
copy
Run a program within a new security context
$ pw-container [command] [arg1] [arg2]
copy
Run connecting to a specific remote PipeWire instance
$ pw-container -r [remote_name] [command]
copy
Run with specific security properties using JSON
$ pw-container -P '{"pipewire.sec.app-id": "[my-app]"}' [command]
copy
Display help
$ pw-container -h
copy

SYNOPSIS

pw-container [options] [command] [arguments...]

DESCRIPTION

pw-container creates a new security context using the PipeWire SecurityContext extension API. It sets up a temporary Unix socket as a server with the given properties, and clients created from this socket have the security properties attached to them.If a command is specified, it is executed within the new security context. If no command is given, the socket address is printed to standard output. The process does not exit until terminated with a signal (exits 0 on SIGINT/SIGTERM).This is useful for sandboxing applications or running programs with restricted PipeWire access.

PARAMETERS

-r, --remote name

Connect to specific remote PipeWire instance
-P, --properties json
Set context properties using JSON object
-h, --help
Display help message

INSTALL

sudo apt install pipewire-bin
copy
sudo apk add pipewire-tools
copy
sudo zypper install pipewire-tools
copy

CAVEATS

Security contexts must be supported by the PipeWire configuration. Properties must be valid JSON format. The process stays running until signaled.

HISTORY

Part of PipeWire, the modern multimedia framework for Linux. Provides application isolation capabilities for audio and video access control.

SEE ALSO

pipewire(1), pw-cli(1), pw-cat(1), wpctl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid