aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/config.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-07 22:33:45 +0900
committerOphestra <cat@gensokyo.uk>2025-12-07 22:34:40 +0900
commit1931b5460034b63dcb1c89bd0c8825a751829f45 (patch)
tree9132bd77d9b4bb128c7604232483d278e592b86f /hst/config.go
parent093e30c78872a5d8605de4b2a3aeb35abca63835 (diff)
hst: add pipewire flag
These are for #26. None of them are implemented yet. This fixes up test cases for the change to happen. Existing source code and JSON configuration continue to have the same effect. Existing flags get its EPulse bit replaced by EPipeWire. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config.go')
-rw-r--r--hst/config.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/hst/config.go b/hst/config.go
index d7078551..c6cd790c 100644
--- a/hst/config.go
+++ b/hst/config.go
@@ -23,9 +23,20 @@ type Config struct {
// System D-Bus proxy configuration.
// If set to nil, system bus proxy is disabled.
SystemBus *BusConfig `json:"system_bus,omitempty"`
+
// Direct access to wayland socket, no attempt is made to attach security-context-v1
// and the bare socket is made available to the container.
+ //
+ // This option is unsupported and most likely enables full control over the Wayland
+ // session. Do not set this to true unless you are sure you know what you are doing.
DirectWayland bool `json:"direct_wayland,omitempty"`
+ // Direct access to PulseAudio socket, no attempt is made to establish pipewire-pulse
+ // server via a PipeWire socket with a SecurityContext attached and the bare socket
+ // is made available to the container.
+ //
+ // This option is unsupported and enables arbitrary code execution as the PulseAudio
+ // server. Do not set this to true, this is insecure under any configuration.
+ DirectPulse bool `json:"direct_pulse,omitempty"`
// Extra acl updates to perform before setuid.
ExtraPerms []ExtraPermConfig `json:"extra_perms,omitempty"`