Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] what's wrong with pulseaudio?
Date: Fri, 01 Jun 2012 14:21:36
Message-Id: CADPrc81s1AyJGzEvsy24sL3=ov1QyCsfqFBJBXzKauhg05T72Q@mail.gmail.com
In Reply to: Re: [gentoo-user] what's wrong with pulseaudio? by Easior
1 On Fri, Jun 1, 2012 at 3:23 AM, Easior <easior@×××.com> wrote:
2 [ snip ]
3 > Thanks again. My result is as follows:
4 >
5 > $ ps aux | grep pulse
6 > easior    2989  0.0  0.6 100052  5472 ?        Sl   15:47   0:00 /usr/bin/pulseaudio --start --log-target=syslog
7 > easior    2993  0.0  0.3  12636  2708 ?        S    15:47   0:00 /usr/libexec/pulse/gconf-helper
8 [ snip ]
9 > I think that the runtime files should be in the /var/somewhere or /root/ even if the
10 > pulseaudio is been running as the superuser. Do you?
11
12 I suppose, but your system is doing really weird stuff: running
13 pulseaudio as user and writing to / should be, at least
14 theoretically, impossible. PulseAudio is not setuid'. You could check
15 proc to see if it's actually PA writing to /; for example, I have
16
17 $ ps aux | grep pulse
18 canek 752 0.0 0.1 320356 5624 ? Sl May27 2:52
19 /usr/bin/pulseaudio --start --log-target=syslog
20 canek 755 0.0 0.0 190328 20 ? Sl May27 0:00
21 /usr/libexec/pulse/gconf-helper
22
23 So I do
24
25 $ ls -l /proc/752/fd/
26 total 0
27 lr-x------ 1 canek canek 64 May 30 20:39 0 -> /dev/null
28 l-wx------ 1 canek canek 64 May 30 20:39 1 -> /dev/null
29 lrwx------ 1 canek canek 64 May 30 20:39 10 ->
30 /home/canek/.pulse/a8880ec371495fe2255463514a0d14e8-device-volumes.x86_64-pc-linux-gnu.gdbm
31 lrwx------ 1 canek canek 64 May 30 20:39 11 ->
32 /home/canek/.pulse/a8880ec371495fe2255463514a0d14e8-stream-volumes.x86_64-pc-linux-gnu.gdbm
33 lrwx------ 1 canek canek 64 May 30 20:39 12 ->
34 /home/canek/.pulse/a8880ec371495fe2255463514a0d14e8-card-database.x86_64-pc-linux-gnu.gdbm
35
36 So I can see that my PA process has opened files on /home/canek/.pulse/.
37
38 However, I guess that will only confirm that your PA process is
39 opening files in /. So this I would do (as root):
40
41 1. Backup any pulse file in /etc:
42
43 $ tar zcvf /root/pulse-conf-bak.tar.gz $(find /etc -iname "*pulse*")
44
45 In my system, there are only 4 PulseAudio files in /etc:
46
47 $ find /etc -iname "*pulse*"
48 /etc/pulse
49 /etc/xdg/autostart/pulseaudio-kde.desktop
50 /etc/xdg/autostart/pulseaudio.desktop
51 /etc/dbus-1/system.d/pulseaudio-system.conf
52
53 2. Uninstall pulse:
54
55 $ emerge -C pulseaudio
56
57 3. Remove every single file in /etc that looks related to pulse (check
58 before that nothing else is getting in the list):
59
60 $ find /etc -iname "*pulse*"
61 # If everything seems safe to delete, then
62 $ rm -rf $(find /etc -iname "*pulse*")
63
64 4. Emerge PA again:
65
66 $ emerge -1v pulseaudio
67
68 5. Delete /.pulse and all its files.
69
70 6. Reboot.
71
72 If after all this you are still getting the .pulse directory in /,
73 then I have no idea how is getting in there.
74
75 Regards.
76 --
77 Canek Peláez Valdés
78 Posgrado en Ciencia e Ingeniería de la Computación
79 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] what's wrong with pulseaudio? Michael Mol <mikemol@×××××.com>
Re: [gentoo-user] what's wrong with pulseaudio? Michael Orlitzky <michael@××××××××.com>