mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5086] palemoon: cannot open meeting links in Teams desktop app #2874
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2874
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GFNIAE on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5086
Description
On antiX 21 (debian 11 based), fluxbox desktop, firejail version 0.9.64.4.
I use palemoon (29.4.4) as a browser and teams desktop application (1.3). I need that when I click a teams meeting link in the browser, it is opened by teams desktop app. This is what happens when palemoon is not firejailed.
But it does not happen as soon as you use a network namespace (--net=eth0 or wlan0)
Steps to Reproduce
Run firejail --net=eth0 palemoon
Click on a teams meeting link in palemoon browser
Expected behavior
Teams desktop app pops up and let you connect to the meeting
Actual behavior
Teams desktop app DOES NOT pop up and let you connect to the meeting
Error with dbus are displayed with no palemoon.local file, about /run/firejail/mnt/dbus/user not being allowed.
No error is displayed with "ignore nogroups" in a palemoon.local file (but teams does not pop up either)
Additional context
I tried ignore dbus-user none, ignore disable-mnt, whitelist /run/firejail/mnt/dbus/user with no luck.
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)@ghost commented on GitHub (Apr 1, 2022):
Never used palemoon but I notice that our profile for it doesn't use any D-Bus filtering like we do in firefox.profile. What happens when you add those same filtering rules in your
palemoon.local? For testing you can copy that block verbatim like below. Check with an app like d-feet what specific D-Bus address palemoon uses by default, I just assume it uses the same one as 'regular' Firefox from Mozilla here. If this works we can start checking if palemoon needs anything more specific later.@ghost commented on GitHub (Apr 1, 2022):
UPDATE: just installed palemoon to check how it acts when running firejailed. Forget the above, IMO the problem might be in the teams.profile. I didn't check that properly, but it has a comment '# Disabled until someone reported positive feedback' and (amongst other options) disables including
whitelist-runuser-common.inc. Try including that in ateams.local:The double
ignoreisn't a typo. Just a (clumsy) way to undo what is ignored in teams.profile. You could enable the other 'unconfirmed' options too, but whitelist-runuser-common.inc is the important one in this context, as it whitelists ${RUNUSER}/bus.@GFNIAE commented on GitHub (Apr 1, 2022):
Hello and thanks for your help,
I don't use firejail for teams - so here we deal with a firejail - palemoon issue.
I installed d-feet and could see some dbus interfaces associated with "palemoon":
But what looks strange is that when I add in palemoon.local:
I get a firejail error: "DBus user socket was not found."
@rusty-snake commented on GitHub (Apr 1, 2022):
Make sure your environment is setup correctly. #3769
@ghost commented on GitHub (Apr 1, 2022):
Firejail 0.9.64.4 is over a year old now. Check if you can install the latest stable release.
@GFNIAE commented on GitHub (Apr 4, 2022):
Hello,
I installed last stable Firejail 0.9.68 (through manual download and
dpkg -i)Thanks rusty-snake for the link. It seems the very same issue but I did not succeed in "unlocking" the link between (sandboxed) palemoon and (not sandboxed) teams :
as exposed in the #3769 issue, I had no
DBUS_SESSION_BUS_ADDRESSset.however in ~/.dbus/session-bus I can see a lot of files with ugly numbers as a name, and inside lines like these :
I set this option to "true". As a consequence I have now a non empty
DBUS_SESSION_BUS_ADDRESSin my session (I guess this last option lets execute some kind of :source ~/.dbus/session-bus/more-recent-file && export DBUS_SESSION_BUS_ADDRESS).However even with this change,
firejail palemoondoes not allow to call teams from a link in palemoon.There is no written error in the shell, it just does not work.
When I check
firejail --audit palemoon, I can see there is aDBUS_SESSION_BUS_ADDRESSenv variable not empty and readable from the sandbox.I tried without any palemoon.local, as well as with such a file and various options (ignore nogroups, ignore noroot, noblacklist+whitelist ${HOME}/.config/teams, noblacklist+whitelist ${HOME}/.config/Microsoft...)
Have you got any clue about what I could check/try ?
@GFNIAE commented on GitHub (Apr 4, 2022):
Hello,
I just checked with chromium : same results. A teams link is open on teams app if chromium is launched without firejail. It fails if chromium is sandboxed, without any dbus-related errors displayed.
@GFNIAE commented on GitHub (Apr 4, 2022):
I could check something else : the issue arises with or without --net option. It seems not to be linked with network namespace.