Comment 0 for bug 1770600

Revision history for this message
daniel CURTIS (anoda) wrote : Firefox v60: does not work after updating, many "DENIED" log entries.

Hello.

Today, Firefox has been updated to v60. After first start there was so many problems: with new tab (errors), Sandbox option (one new with 'false' option) etc. There were so many problems. No website was working, I can not click on anything, there was no menu bar and so on.

Anyway, there was a lot of "DENIED" entries in a log files. These are the AppArmor rules, that helped and now Firefox works okay. Maybe it will help someone?

# apparmor="DENIED" operation="capable" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# comm="firefox" capability=21 capname="sys_admin"
capability sys_admin,

# apparmor="DENIED" operation="capable" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# comm="firefox" capability=19 capname="sys_ptrace"
capability sys_ptrace,

# apparmor="DENIED" operation="capable" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# comm="Gecko_IOThread" capability=18 capname="sys_chroot"
capability sys_chroot,

# NOTE: what about an "owner" prefix?
# apparmor="DENIED" operation="open" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# name="/proc/4137/uid_map" comm="Gecko_IOThread" requested_mask="w" denied_mask="w"
# fsuid=1000 ouid=1000
@{PROC}/@{pid}/uid_map w,

# NOTE: what about an "owner" prefix?
# apparmor="DENIED" operation="open" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# name="/proc/4282/gid_map" comm="Gecko_IOThread" requested_mask="w" denied_mask="w"
# fsuid=1000 ouid=1000
@{PROC}/@{pid}/gid_map w,

# apparmor="DENIED" operation="open" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# name="/proc/4282/setgroups" comm="Gecko_IOThread" requested_mask="w" denied_mask="w"
# fsuid=1000 ouid=1000
@{PROC}/@{pid}/setgroups w,

# NOTE: what about an "owner" prefix?
# apparmor="DENIED" operation="dbus_bind" bus="session" name="org.mozilla.firefox.ZGVmYXVsdA__"
# mask="bind"
# label="/usr/lib/firefox/firefox{,*[^s][^h]}"
dbus bind bus=session name=org.mozilla.firefox.*,

# Note: this rule can be found, for example, in "abstractions/X" file. However, there is "r" in log
# entries so I added "r" -- and now it's "rw".
# apparmor="DENIED" operation="connect" profile="/usr/lib/firefox/firefox{,*[^s][^h]}"
# name="/tmp/.X11-unix/X0" comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
#
/tmp/.X11-unix/* rw,
unix (connect, receive, send)
      type=stream
      peer=(addr="@/tmp/.X11-unix/X[0-9]*"),

Can someone check if these rules are okay? With above rules, Firefox v60 is working okay again: web browsing, new tabs etc. There are also some "segfaults" error in log files - together with "DENIED" rules. Here are some of them (there is a bug report on Launchpad about "libxul"):

✗ [ 3051.788218] Gecko_IOThread[4770]: segfault at 0 ip aef1b0de sp aeb1a550 error 6 in libxul.so[aebed000+66fd000]
✗ Gecko_IOThread[4795]: segfault at 0 ip aef1b0de sp aeb1a550 error 6 in libxul.so[aebed000+66fd000]

Here are some technical informations:

● Firefox: v60.0 (32-bit)
● Linux kernel: 4.4.0-125-generic
● Release: 16.04 LTS

Thanks, best regards.