netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.83k stars 568 forks source link

profiles: librewolf: add new dbus name (io.gitlab.firefox) #6473

Closed kmk3 closed 2 months ago

kmk3 commented 2 months ago

It appears that LibreWolf 129 uses io.gitlab.firefox.* as the dbus name.

Commands used to check the dbus name:

$ busctl --user --no-legend | grep -v '^:' | grep librewolf |
  sed -E 's/(^[^ ]+\.)[^. ]+ .*/\1/'
io.gitlab.firefox.

Commands used to test dbus communication:

# Open a new browser instance:
$ firejail --name=lwtest --ignore=name --ignore='dbus-user none' \
  --dbus-user=filter --dbus-user.own='io.gitlab.firefox.*' \
  --private --net=none --ignore=net /usr/bin/librewolf
# In another shell, try to open a new tab:
$ firejail --join=lwtest /usr/bin/librewolf --new-tab about:blank
# Check that the new tab was opened

Related commits:

Fixes #6413.

Misc: This was noticed on #6444.

Reported-by: @Lonniebiz