[pulseaudio-discuss] How to avoid socket activation for root?

Tanu Kaskinen tanuk at iki.fi
Sat Jan 28 11:58:32 UTC 2017


Hi all,

In the "PA 10 : paplay can't connect !" thread I noticed worrying
netstat output:

[video at sixcore ~]$ netstat -l -x -p | grep pulse
(Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
unix  2      [ ACC ]     STREAM     LISTENING     51237    7388/pulseaudio      /tmp/.esd-501/socket
unix  2      [ ACC ]     STREAM     LISTENING     26773    -                    /run/user/0/pulse/native
unix  2      [ ACC ]     STREAM     LISTENING     40938    7362/systemd         /run/user/501/pulse/native

It looks like systemd manages also root login sessions, and it creates
the pulseaudio socket for root. Presumably pulseaudio would get started
if some application tried to access the socket. When using the
traditional autospawning mechanism, we don't start pulseaudio for root,
and that's how it should be also in the systemd socket activation case.

Does anyone have ideas about how we could prevent systemd from creating
the socket for root by default?

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list