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?
# 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]
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]}" "sys_ptrace"
# comm="firefox" capability=19 capname=
capability sys_ptrace,
# apparmor="DENIED" operation="capable" profile= "/usr/lib/ firefox/ firefox{ ,*[^s][ ^h]}" IOThread" capability=18 capname= "sys_chroot"
# comm="Gecko_
capability sys_chroot,
# NOTE: what about an "owner" prefix? "/usr/lib/ firefox/ firefox{ ,*[^s][ ^h]}" proc/4137/ uid_map" comm="Gecko_ IOThread" requested_mask="w" denied_mask="w" /@{pid} /uid_map w,
# apparmor="DENIED" operation="open" profile=
# name="/
# fsuid=1000 ouid=1000
@{PROC}
# NOTE: what about an "owner" prefix? "/usr/lib/ firefox/ firefox{ ,*[^s][ ^h]}" proc/4282/ gid_map" comm="Gecko_ IOThread" requested_mask="w" denied_mask="w" /@{pid} /gid_map w,
# apparmor="DENIED" operation="open" profile=
# name="/
# fsuid=1000 ouid=1000
@{PROC}
# apparmor="DENIED" operation="open" profile= "/usr/lib/ firefox/ firefox{ ,*[^s][ ^h]}" proc/4282/ setgroups" comm="Gecko_ IOThread" requested_mask="w" denied_mask="w" /@{pid} /setgroups w,
# name="/
# fsuid=1000 ouid=1000
@{PROC}
# NOTE: what about an "owner" prefix? "dbus_bind" bus="session" name="org. mozilla. firefox. ZGVmYXVsdA_ _" /usr/lib/ firefox/ firefox{ ,*[^s][ ^h]}" mozilla. firefox. *,
# apparmor="DENIED" operation=
# mask="bind"
# label="
dbus bind bus=session name=org.
# Note: this rule can be found, for example, in "abstractions/X" file. However, there is "r" in log "/usr/lib/ firefox/ firefox{ ,*[^s][ ^h]}" tmp/.X11- unix/X0" comm="firefox" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 (addr=" @/tmp/. X11-unix/ X[0-9]* "),
# entries so I added "r" -- and now it's "rw".
# apparmor="DENIED" operation="connect" profile=
# name="/
#
/tmp/.X11-unix/* rw,
unix (connect, receive, send)
type=stream
peer=
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] 4795]: segfault at 0 ip aef1b0de sp aeb1a550 error 6 in libxul. so[aebed000+ 66fd000]
✗ Gecko_IOThread[
Here are some technical informations:
● Firefox: v60.0 (32-bit)
● Linux kernel: 4.4.0-125-generic
● Release: 16.04 LTS
Thanks, best regards.