Bug 829076 - [Pulseaudio startup fail] - running progams (such as Yast) through xdg-su changes owner of /run/user/*/pulse
Summary: [Pulseaudio startup fail] - running progams (such as Yast) through xdg-su cha...
Status: RESOLVED DUPLICATE of bug 852015
Alias: None
Product: openSUSE 12.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: Other openSUSE 12.3
: P3 - Medium : Major (vote)
Target Milestone: ---
Assignee: Jiri Slaby
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 14:34 UTC by Forgotten User bjrImjCDxY
Modified: 2014-01-09 15:04 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User bjrImjCDxY 2013-07-11 14:34:01 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

running programs - especially yast2 - through xdg-su changes the owner of /run/user/$ID/pulse (and possibly other folders under /run/user/$ID/) to root. this causes pulseaudio to fail with the message:

E: [autospawn] core-util.c: Failed to create secure directory (/run/user/1001/pulse): Permission denied
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [pulseaudio] main.c: Failed to acquire autospawn lock

manually changing the owner back to the user fixes this. depending on the program running through xdg-su this may effect other folders in /run/user/$ID - such as dconf and gvfs - too.

this affects all Yast2 desktop files in /usr/share/applications/YaST2/

Reproducible: Always

Steps to Reproduce:
1. xdg-su -c "yast2 sw_single"
2. enter correct pw and press enter
Actual Results:  
E: [autospawn] core-util.c: Failed to create secure directory (/run/user/1001/pulse): Permission denied
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [pulseaudio] main.c: Failed to acquire autospawn lock


Expected Results:  
no owner change
Comment 1 Takashi Iwai 2013-07-11 14:41:56 UTC
This sounds more like a generic issue in xdg-su, not specific to PA.

Jiri, could you take a look?
Comment 2 Jiri Slaby 2013-07-19 08:53:56 UTC
I don't see it with KDE. What DE do you use?
Comment 3 Jiri Slaby 2013-07-19 08:57:18 UTC
The best would be to attach the output of
sh -xx xdg-su -c "yast2 sw_single"
Comment 4 Forgotten User bjrImjCDxY 2013-08-13 18:06:08 UTC
i(In reply to comment #2)
> I don't see it with KDE. What DE do you use?

at first i thougt with gnome too, but after some deeper looking it's only affecting e17.
Comment 5 Tomas Cech 2013-08-15 11:50:32 UTC
if Sebastian is using my modified version of xdg-utils, evil things may happen. But I'll have a look on that after vacation. Thanks for the report.
Comment 6 Forgotten User bjrImjCDxY 2013-08-15 12:41:32 UTC
Tomas i didn't realise there was a patched version of xdg-utils in the e17 repo. but i'll tried standard one and its the same.
so the problem is both with gnomesu and when running through xterm.
Comment 7 Tomas Cech 2013-08-19 09:50:26 UTC
Thank you for confirmation. If it is not related to my modified version, the same behaviour should appear in any non KDE/GNOME/XFCE DE.
Comment 8 Ondrej Holecek 2013-12-11 13:55:28 UTC
Isn't this same issue as bnc#852015?
Comment 9 Takashi Iwai 2013-12-11 14:36:46 UTC
Yes, looks so.  It was fixed in 13.1 but not for 12.3.  The backport isn't too trivial as pam_systemd code has been changed a lot, unfortunately...
Comment 10 Jiri Slaby 2014-01-09 15:04:21 UTC
.

*** This bug has been marked as a duplicate of bug 852015 ***