Public bug reported:

It appears that apparmor is preventing the firefox snap from connecting
to the pulseaudio pipe.

When i play any video from youtube i get the error:

Oct  8 23:32:44 javier-Ryzen-Asus kernel: [12101.229270] audit: type=1107 
audit(1633750364.844:79): pid=850 uid=103 auid=4294967295 ses=4294967295 
subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  
bus="system" path="/org/freedesktop/RealtimeKit1" 
interface="org.freedesktop.RealtimeKit1" member="MakeThreadRealtimeWithPID" 
mask="send" name="org.freedesktop.RealtimeKit1" pid=14843 
label="snap.firefox.firefox" peer_pid=1073 peer_label="unconfined"
Oct  8 23:32:44 javier-Ryzen-Asus kernel: [12101.229270]  
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'

And no audio is played. If i play the same video in another browser it
plays just normal.

Checking "snap interface audio-playback" gives:

summary: allows audio playback via supporting services
plugs:
  - discord
  - dolphin-emulator
  - firefox
slots:
  - snapd

and

"snap connections" gives: 
Interfaz                  Enchufe                                   Ranura      
                     Notas
appstream-metadata        snap-store:appstream-metadata             
:appstream-metadata              -
audio-playback            discord:audio-playback                    
:audio-playback                  -
audio-playback            dolphin-emulator:audio-playback           
:audio-playback                  -
audio-playback            firefox:audio-playback                    
:audio-playback                  -
audio-record              firefox:audio-record                      
:audio-record                    -
avahi-observe             firefox:avahi-observe                     
:avahi-observe                   -
browser-support           discord:browser-support                   
:browser-support                 -
browser-support           firefox:browser-sandbox                   
:browser-support                 -
camera                    discord:camera                            :camera     
                     -
camera                    firefox:camera                            :camera     
                     -
content[gnome-3-28-1804]  discord:gnome-3-28-1804                   
gnome-3-28-1804:gnome-3-28-1804  -
content[gtk-3-themes]     discord:gtk-3-themes                      
gtk-common-themes:gtk-3-themes   -
content[icon-themes]      discord:icon-themes                       
gtk-common-themes:icon-themes    -
content[sound-themes]     discord:sound-themes                      
gtk-common-themes:sound-themes   -
content[gtk-3-themes]     dolphin-emulator:gtk-3-themes             
gtk-common-themes:gtk-3-themes   -
content[icon-themes]      dolphin-emulator:icon-themes              
gtk-common-themes:icon-themes    -
content[sound-themes]     dolphin-emulator:sound-themes             
gtk-common-themes:sound-themes   -
content[gnome-3-38-2004]  firefox:gnome-3-38-2004                   
gnome-3-38-2004:gnome-3-38-2004  -
content[gtk-3-themes]     firefox:gtk-3-themes                      
gtk-common-themes:gtk-3-themes   -
content[icon-themes]      firefox:icon-themes                       
gtk-common-themes:icon-themes    -
content[sound-themes]     firefox:sound-themes                      
gtk-common-themes:sound-themes   -
content[gnome-3-34-1804]  snap-store:gnome-3-34-1804                
gnome-3-34-1804:gnome-3-34-1804  -
content[gtk-3-themes]     snap-store:gtk-3-themes                   
gtk-common-themes:gtk-3-themes   -
content[icon-themes]      snap-store:icon-themes                    
gtk-common-themes:icon-themes    -
content[sound-themes]     snap-store:sound-themes                   
gtk-common-themes:sound-themes   -
cups-control              firefox:cups-control                      
:cups-control                    -
desktop                   discord:desktop                           :desktop    
                     -
desktop                   dolphin-emulator:desktop                  :desktop    
                     -
desktop                   firefox:desktop                           :desktop    
                     -
desktop                   snap-store:desktop                        :desktop    
                     -
desktop-legacy            discord:desktop-legacy                    
:desktop-legacy                  -
desktop-legacy            dolphin-emulator:desktop-legacy           
:desktop-legacy                  -
desktop-legacy            firefox:desktop-legacy                    
:desktop-legacy                  -
desktop-legacy            snap-store:desktop-legacy                 
:desktop-legacy                  -
fwupd                     snap-store:fwupd                          :fwupd      
                     -
gsettings                 discord:gsettings                         :gsettings  
                     -
gsettings                 dolphin-emulator:gsettings                :gsettings  
                     -
gsettings                 firefox:gsettings                         :gsettings  
                     -
gsettings                 snap-store:gsettings                      :gsettings  
                     -
hardware-observe          firefox:hardware-observe                  
:hardware-observe                -
home                      discord:home                              :home       
                     -
home                      dolphin-emulator:home                     :home       
                     -
home                      firefox:home                              :home       
                     -
joystick                  dolphin-emulator:joystick                 :joystick   
                     -
network                   discord:network                           :network    
                     -
network                   dolphin-emulator:network                  :network    
                     -
network                   firefox:network                           :network    
                     -
network                   snap-store:network                        :network    
                     -
network-bind              dolphin-emulator:network-bind             
:network-bind                    -
network-status            snap-store:network-status                 
:network-status                  -
opengl                    discord:opengl                            :opengl     
                     -
opengl                    dolphin-emulator:opengl                   :opengl     
                     -
opengl                    firefox:opengl                            :opengl     
                     -
opengl                    snap-store:opengl                         :opengl     
                     -
optical-drive             dolphin-emulator:optical-drive            
:optical-drive                   -
packagekit-control        snap-store:packagekit-control             
:packagekit-control              -
password-manager-service  snap-store:password-manager-service       
:password-manager-service        -
personal-files            firefox:dot-mozilla-firefox               
:personal-files                  -
pulseaudio                discord:pulseaudio                        :pulseaudio 
                     -
removable-media           firefox:removable-media                   
:removable-media                 -
screen-inhibit-control    discord:screen-inhibit-control            
:screen-inhibit-control          -
screen-inhibit-control    firefox:screen-inhibit-control            
:screen-inhibit-control          -
snapd-control             snap-store:snapd-control                  
:snapd-control                   -
system-files              firefox:etc-firefox-policies              
:system-files                    -
system-files              snap-store:hostfs-usr-share-applications  
:system-files                    -
system-observe            snap-store:system-observe                 
:system-observe                  -
system-packages-doc       firefox:system-packages-doc               
:system-packages-doc             -
u2f-devices               firefox:u2f-devices                       
:u2f-devices                     -
unity7                    discord:unity7                            :unity7     
                     -
unity7                    dolphin-emulator:unity7                   :unity7     
                     -
unity7                    firefox:unity7                            :unity7     
                     -
upower-observe            firefox:upower-observe                    
:upower-observe                  -
upower-observe            snap-store:upower-observe                 
:upower-observe                  -
wayland                   discord:wayland                           :wayland    
                     -
wayland                   dolphin-emulator:wayland                  :wayland    
                     -
wayland                   firefox:wayland                           :wayland    
                     -
wayland                   snap-store:wayland                        :wayland    
                     -
x11                       discord:x11                               :x11        
                     -
x11                       dolphin-emulator:x11                      :x11        
                     -
x11                       firefox:x11                               :x11        
                     -
x11                       snap-store:x11                            :x11        
                     -

Wich looks fine but still dosent explain the error

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: firefox snap snapd

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1946536

Title:
  Snap firefox - apparmor blocking usb audio

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1946536/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to