[Bug 2073094] Re: Firefox's AppArmor profile issues (MPRIS)
Multis
2073094 at bugs.launchpad.net
Tue Dec 3 15:33:49 UTC 2024
I had same problem after installing Ubuntu 24.04 and Firefox deb package
from ppa (https://launchpad.net/~mozillateam/+archive/ubuntu/ppa). I.E.
I could not control video (on youtube.com for example) with headset
buttons and didn't even had gnome notification about it playing. Though
other apps like Rhythmbox or VLC worked fine.
It seems that apparmor package already comes with many default profiles
for different common apps, even though I never installed them. So, it
includes Firefox profile as well (/etc/apparmor.d/firefox). But Firefox
deb package includes its own profile (/etc/apparmor.d/usr.bin.firefox)
which conflicts with default one from apparmor. This resulted in a bug
with inability to control videos with hardware buttons. Though this may
be only the one I noticed, as I also had many "DENIED" errors from
apparmor logs attributed to Firefox. But I didn't understand them, so I
didn't pay attention.
SOLUTION:
At first I tried deleting default one (/etc/apparmor.d/firefox) and
leave one provided in deb package (/etc/apparmor.d/usr.bin.firefox). But
this did not help.
Today I came across another solution, which suggested opposite: restore
default apparmor profile (/etc/apparmor.d/firefox) and delete one
provided with deb package (/etc/apparmor.d/usr.bin.firefox). And it
worked just fine. It not only enabled me to control videos in Firefox
with headset, but also solved numerous errors in apparmor logs
attributed to Firefox, which I didn't pay attention earlier.
The author of this solution, stated that default apparmor profile may
include system-specific configurations, which are shared across all apps
(by means of including default partial configurations into app
profiles). Seems, it included MPRIS configuration as well.
--
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/2073094
Title:
Firefox's AppArmor profile issues (MPRIS)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2073094/+subscriptions
More information about the Ubuntu-mozillateam-bugs
mailing list