mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5171] signal: cannot reconnect if started without internet connection (resolv.conf) #2903
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#2903
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 @rieje on GitHub (May 31, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5171
Description
Signal desktop client is unable to reconnect if it was started without internet connection. Without firejail, it will normally reconnect even if started without internet connection.
Steps to Reproduce
You will see:
Even if you click to reconnect, it refuses to connect despite internet connection established. Without firejail, it will auto-reconnect without the user having to click reconnect (although that works too).
If Signal is started with connection, then restarting NetworkManager (i.e. terminating internet connection and establishing it again) will work as expected, i.e. it will be possible to re-connect. So the issue is only if Signal is started without internet connection where it will be impossible to reconnect unless you kill the Signal instance and restart.
Environment
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)Log
Disabled internet connection, start capturing the log, then start internet connection. Click "reconnect", Signal fails to reconnect. Terminate Signal and uploaded logs below:
Output of
LC_ALL=C firejail /usr/bin/signal-desktop.Output of
LC_ALL=C firejail --debug /usr/bin/signal-desktop.@rusty-snake commented on GitHub (May 31, 2022):
What's in it?
@rusty-snake commented on GitHub (May 31, 2022):
How is
/etc/resolv.confhandled?Is is a symlink? If yes, where does it point to?
Which program changes it? NetworkManager? systemd-networkd?
@rieje commented on GitHub (May 31, 2022):
~/.config/firejails/signal-desktop.local:
/etc/resolv.confis not a symlink and handled by NetworkManager.@rusty-snake commented on GitHub (May 31, 2022):
That's likely explains it because signal-desktop.profile uses
private-etc.If
/etc/resolv.confis a file, NetworkManager will write to resolv.conf withcreat+write+renamelogic. If there is no nameserver set in resolv.conf when the sandbox is started, it will end up without one.For now you can change
/etc/resolv.confor usedns 1.2.3.4(in signal-desktop.local).