module-esound-protocol-unix and ownership of /tmp/.esd directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PulseAudio |
Won't Fix
|
Unknown
|
|||
pulseaudio (Ubuntu) |
Fix Released
|
Wishlist
|
Martin Pitt |
Bug Description
Binary package hint: pulseaudio
I had pulseaudio configured to run as system daemon, which did not work correctly.
So I stopped the daemon and tried to start it as user:
sf@ID-24857:~$ pulseaudio
[..]
module.c: Failed to load module "module-
[..]
So I did only know that "module-
So I tried again with more logging:
sf@ID-24857:~$ pulseaudio --log-level=debug
main.c: WARNING: called SUID root, but not in group 'pulse-rt'.
[..]
module-
module.c: Failed to load module "module-
[..]
Ok, a directory could not be created, but which was not said.
So since it was the esd module it was not that difficult *for me* to guess which:
sf@ID-24857:~$ ll /tmp/.esd/
insgesamt 0
srwxrwxrwx 1 pulse pulse 0 2007-03-11 19:29 socket
So the socket in /tmp.esd belonged to user pulse and could not be overwritten by my user.
So I deleted /tmp/.esd and pulseaudio started ok.
sf@ID-24857:~$ sudo rm -rf /tmp/.esd/
sf@ID-24857:~$ pulseaudio
main.c: WARNING: called SUID root, but not in group 'pulse-rt'.
alsa-util.c: device doesn't support 44100 Hz, changed to 48000 Hz.
sound-file.c: Failed to open file /usr/share/
main.c: Failed to load sound file.
So here are at least 3 bugs involved:
* Not printing the error message that the socket file could not be written without
modifying the debugging level
* Not printing the name of the file which could not be written
* Insisting on exclusive rights on a directory which should be writeable by all users:
AFAIK all users need access to /tmp/.esd for esd programs to work correctly.
I must admit I don't know how esound compatibility is intended to work in a
multiuser scenario where serveral users start a pulseaudio daemon and need
esd compatibility since there is only a single esd socket dir and so only one
pulseaudio daemon can manage it.
Changed in pulseaudio: | |
status: | Unknown → Won't Fix |
Similar to bug 76234.