[Bug 2045980] [NEW] AppArmor config denies 'k' access to suggest.sqlite-shm

Chris Markiewicz 2045980 at bugs.launchpad.net
Fri Dec 8 13:55:40 UTC 2023


Public bug reported:

This occurs in the ESR builds from ppa:mozillateam/ppa.

My dmesg log is filled with lines such as:

[ 3015.575852] audit: type=1400 audit(1702042069.563:12459):
apparmor="DENIED" operation="file_lock" class="file" profile="firefox"
name="/home/chris/.cache/mozilla/firefox/pws2qa7b.default/suggest.sqlite-
shm" pid=25154 comm=4267494F5468727E506F6F6C202332 requested_mask="k"
denied_mask="k" fsuid=1000 ouid=1000

Possibly relatedly, a number of sites would start to load and then
freeze. At times they would allow scrolling but not clicking or typing,
or the tab throbber would keep going. Closing firefox required a SIGTERM
to fully shut down, while these requests continued to be made.

Looking through the AppArmor profile, there was a line:

  owner @{HOME}/.{firefox,mozilla}/**/*.{db,parentlock,sqlite}* k,

I added the following to /etc/apparmor.d/local/usr.bin.firefox:

  owner @{HOME}/.cache/mozilla/firefox/**/*.sqlite* k,

This definitely resolves the dmesg issue, and it seems to be resolving
the intermittent hanging issue. Reloading the apparmor profile without
restarting firefox seems to have been successful.

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


** Tags: apparmor esr

-- 
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/2045980

Title:
  AppArmor config denies 'k' access to suggest.sqlite-shm

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




More information about the Ubuntu-mozillateam-bugs mailing list