mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-01-01 09:20:10 +01:00
The autospawn mechanism already had a root-autospawn protection mechanism. When using systemd that was lost. Systemd 234 has a mechanism to conditionalize unit starting on the running user, so lets do that to protect against root autospawning.
11 lines
147 B
SYSTEMD
11 lines
147 B
SYSTEMD
[Unit]
|
|
Description=Sound System
|
|
ConditionUser=!root
|
|
|
|
[Socket]
|
|
Priority=6
|
|
Backlog=5
|
|
ListenStream=%t/pulse/native
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|