Merge ~robertliu/snappy-hwe-snaps/+git/pulseaudio:unset-xdg_runtime_dir into ~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio:master

Proposed by Robert Liu
Status: Superseded
Proposed branch: ~robertliu/snappy-hwe-snaps/+git/pulseaudio:unset-xdg_runtime_dir
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio:master
Diff against target: 39 lines (+6/-0)
3 files modified
bin/pactl (+2/-0)
bin/paplay (+2/-0)
bin/parec (+2/-0)
Reviewer Review Type Date Requested Status
System Enablement Bot continuous-integration Approve
Simon Fels Approve
Review via email: mp+313748@code.launchpad.net

This proposal has been superseded by a proposal from 2017-01-13.

Description of the change

snapd now exports XDG_RUNTIME_DIR for each snap. for PulseAudio which runs in system mode, the XDR_RUNTIME_DIR will be /run/user/0/pulseaudio.snap. However, to create '/run/user/0' is not allowed.

Dec 22 06:43:55 localhost kernel: [ 66.505522] audit: type=1400 audit(1482389035.822:21): apparmor="DENIED" operation="mkdir" profile="snap.pulseaudio.pactl" name="/run/user/0/" pid=1793 comm="pactl" requested_mask="c" denied_mask="c" fsuid=0 ouid=0

I propose that lets unset XDG_RUNTIME_DIR and PulseAudio will fallback to use the home directory (/root/snap/pulseaudio/[rev])

To post a comment you must log in.
Revision history for this message
Simon Fels (morphis) wrote :
review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Simon Fels (morphis) wrote :

Can you rebase on top of master? CI issues are fixed in master now.

3be07bd... by Robert Liu

Merge branch 'master' of git+ssh://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio into unset-xdg_runtime_dir

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)

Unmerged commits

3be07bd... by Robert Liu

Merge branch 'master' of git+ssh://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio into unset-xdg_runtime_dir

91d1d7b... by Robert Liu

Unset XDG_RUNTIME_DIR and let PulseAudio fallback to HOME

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bin/pactl b/bin/pactl
2index 97e23b2..f39f21b 100755
3--- a/bin/pactl
4+++ b/bin/pactl
5@@ -23,6 +23,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNAP/usr/lib/pulseaudio:$SNAP/usr/lib/p
6 export PULSE_CLIENTCONFIG=$SNAP/etc/pulse/client.conf
7 export HOME=$SNAP_DATA/home
8
9+unset XDG_RUNTIME_DIR
10+
11 mkdir -p $HOME
12
13 $SNAP/usr/bin/pactl $@
14diff --git a/bin/paplay b/bin/paplay
15index a132d51..eb759c9 100755
16--- a/bin/paplay
17+++ b/bin/paplay
18@@ -23,6 +23,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNAP/usr/lib/pulseaudio:$SNAP/usr/lib/p
19 export PULSE_CLIENTCONFIG=$SNAP/etc/pulse/client.conf
20 export HOME=$SNAP_DATA/home
21
22+unset XDG_RUNTIME_DIR
23+
24 mkdir -p $HOME
25
26 $SNAP/usr/bin/paplay $@
27diff --git a/bin/parec b/bin/parec
28index 269e0f8..ea78b35 100755
29--- a/bin/parec
30+++ b/bin/parec
31@@ -23,6 +23,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNAP/usr/lib/pulseaudio:$SNAP/usr/lib/p
32 export PULSE_CLIENTCONFIG=$SNAP/etc/pulse/client.conf
33 export HOME=$SNAP_DATA/home
34
35+unset XDG_RUNTIME_DIR
36+
37 mkdir -p $HOME
38
39 $SNAP/usr/bin/parec $@

Subscribers

People subscribed via source and target branches

to all changes: