4

Let me preface this question with I am a Unix newbie and know just enough to get myself in trouble so treat me like an 8 year old :)

OS Ubuntu 20.04.2 LTS
Browser Firefox v85.0

Issue: Firefox does not seem to want to interact with File Explorer. Example: In Firefox I click on "File" then "Open file.." and literally nothing happens. So I opened a terminal that typed 'tail -f /var/log/syslog' then click "File" and "Open file.." and captured this output from syslog:

Feb  5 23:20:10 ubuntu kernel: [14806.739699] kauditd_printk_skb: 22 callbacks suppressed

Feb 5 23:20:10 ubuntu kernel: [14806.739706] audit: type=1400 audit(1612596010.047:234): apparmor="DENIED" operation="open" profile="snap.firefox.firefox" name="/run/mount/utab" pid=4462 comm="firefox-bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Feb 5 23:20:10 ubuntu kernel: [14806.758367] audit: type=1107 audit(1612596010.067:235): pid=926 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.160" pid=4462 label="snap.firefox.firefox" peer_pid=7830 peer_label="unconfined" Feb 5 23:20:10 ubuntu kernel: [14806.758367] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'

Any clue what is happening or not happening?

Thank you!

1 Answers1

-1

I think you have had a Network Drive Connected, or an external Hard Drive/USB Drive.

Then you possibly unplugged it, or disconnected it. Firefox didn't take notice for some reason. Therefore Firefox complains that something is wrong with /run/mount/utab, where the temporary drive information (or info about the removal event, I don't know) was accessible.
Now it no longer isn't, and/or Firefox cannot read it properly. Or more likely, Firefox wants to read it but is not allowed to.

I think you can give Firefox explicit permission to read from /run/mount/utab by entering some information into file /etc/apparmor.d/local/usr.bin.firefox , which is empty by default.

more  /etc/apparmor.d/local/usr.bin.firefox 

Content:

# Site-specific additions and overrides for usr.bin.firefox.
# For more details, please see /etc/apparmor.d/local/README.

Apparmor, a kernel module for Security, will then read these additional permissions.

However, I don't know how to do this either. The syntax is quite complicated.

knb
  • 5,292