Pulseaudio "Access Denied" on Fedora 25 with Awesome WM as desktop environment

Bug #1689539 reported by Juan A Rubio
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Fedora)
Incomplete
Undecided
Unassigned
snapd (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Simon Fels (morphis)
Changed in snapd (Ubuntu):
assignee: nobody → Simon Fels (morphis)
importance: Undecided → High
Changed in snapd (Fedora):
assignee: nobody → Simon Fels (morphis)
Revision history for this message
Michael Vogt (mvo) wrote :

From reading the forum it looks like the problem is fixed now (by adding 'x11') ?

Changed in snapd (Fedora):
status: New → Incomplete
Changed in snapd (Ubuntu):
status: New → Incomplete
Revision history for this message
Juan A Rubio (juanrubio) wrote :

It is true that the original issue I faced was when the app didn't include the 'x11' plug.

Without x11, the application worked fine on Fedora with Gnome Shell but didn't work with Awesome WM.

I have not tried the snap on Fedora *with* Awesome VM *after* adding 'x11'.

Revision history for this message
Juan A Rubio (juanrubio) wrote :

Hi, Tizonia is still experiencing AppArmor denials in Window Managers like Awesome WM and Cinnamon.

See https://github.com/tizonia/tizonia-openmax-il/issues/588

The Snap of Tizonia works perfectly fine in Gnome 3 or Unity.

Revision history for this message
Seth Arnold (seth-arnold) wrote : Re: [Bug 1689539] Re: Pulseaudio "Access Denied" on Fedora 25 with Awesome WM as desktop environment

On Sun, May 05, 2019 at 08:44:47AM -0000, Juan A Rubio wrote:
> Hi, Tizonia is still experiencing AppArmor denials in Window Managers
> like Awesome WM and Cinnamon.
>
> See https://github.com/tizonia/tizonia-openmax-il/issues/588
>
> The Snap of Tizonia works perfectly fine in Gnome 3 or Unity.

This kind of looks like the user in question tried to run a program as
root and rather than use the standard permissions to perform a task,
needed to use root's capabilities to perform the task.

Can you provide some instructions on how exactly to reproduce this issue?
(Probably it would be best to do this in a new bug report, a two year old
bug report may not be the best place to put it.)

Thanks

Revision history for this message
Juan A Rubio (juanrubio) wrote :

Seth, thanks for your reply.

Indeed the user in https://github.com/tizonia/tizonia-openmax-il/issues/588 was running the program as root, so maybe that wasn't a good example.

But still the problem stated in this launchpad bug report is valid at least in my personal case.

I use Awesome Window Manager in all my systems and the snap of Tizonia has never worked there. But it works without fault with the default WMs (Unity and Gnome 3).

So to reproduce this issue, just get any recent version of Ubuntu, and install Awesome WM

$ sudo apt install awesome

Then install thhe snap of Tizonia and try to play something from YouTube. E.g.:

$ tizonia --youtube-audio-mix-search "AC/DC thunderstruck"

You will get this:

sudo journalctl --output=short --follow --all | sudo snappy-debug kernel.printk_ratelimit = 0 = AppArmor =
Time: May 09 03:51:29
Log: apparmor="DENIED" operation="open" profile="snap.tizonia.tizonia"
name="/proc/26620/mounts" pid=26620 comm="audio_source"
requested_mask="r" denied_mask="r" fsuid=1001 ouid=1001
File: /proc/26620/mounts (read)
Suggestions:
* adjust program to not access '@{PROC}/@{pid}/mounts'
* add one of 'mount-observe, network-control' to 'plugs'

Changed in snapd (Fedora):
assignee: Simon Fels (morphis) → nobody
Changed in snapd (Ubuntu):
assignee: Simon Fels (morphis) → nobody
importance: High → Medium
Elias Sanyana (lephoto)
Changed in snapd (Ubuntu):
status: Incomplete → In Progress
status: In Progress → Fix Committed
status: Fix Committed → New
status: New → Incomplete
status: Incomplete → New
Colin Watson (cjwatson)
Changed in snapd (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.