mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3981] Wayland Only: ibus failed to work in some programs even with --noprofile #2491
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#2491
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 @ixuu153 on GitHub (Feb 12, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3981
IBus input method framework does not response for some applications like signal-desktop and tor-browser, even with
--noprofileoption. The problem only happens on Wayland. It works fine under X11.Environment
Steps to reproduce (tor-browser as example)
Result
Keyboard does not work for BOTH input methods.
See debug output bellow for error message.
Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAMto get english error-messages.browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.debug output
1. When launching tor browser:@rusty-snake commented on GitHub (Feb 12, 2021):
Duplicate of #3379
@rusty-snake commented on GitHub (Feb 12, 2021):
tor-browser has no Wayland support yet. Does this only affect XWayland Apps or any App in Wayland sessions.
Do the workaround (https://github.com/netblue30/firejail/issues/3379#issuecomment-632778490) work for you?
You should update, this version is vulnerable for CVE-2021-26910.
The idea behind this is to see what firejail does, if you strip everything printed by firejail this outpur can not be used for debugging. (here is it unproblematic but in general it should be kept).
@ixuu153 commented on GitHub (Feb 18, 2021):
So far I only tested XWayland programs.
According to this workaround, I added
--dbus-user=noneoption in command line, then at lease ibus can work under English input method. By adding this option, "Events queue growing too big" warning does not appear anymore, but it still has "Unable to connect to ibus" warning message.However, even with this workaround, all other input methods (Japanese, Chinese) still do not work properly. The character selection window does not appear, only plain letters are inputted. In X, this situation can be solve with
--dbus-user=filter --dbus-user.own=org.freedesktop.IBusoption, but in Wayland this solution does not work, and worse still, it return to the behavior with only--noprofileoption (even English input method does not work). It seems we have to disable dbus completely to avoid ibus sending connection request to the main program.Thanks, just updated.
Here is a complete log:
debug output
Fontconfig warning: "/opt/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf", line 85: unknown element "blank"
Feb 17 03:49:20.605 [notice] Tor 0.4.4.6 (git-2a8b789ea6f308d0) running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1i, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
Feb 17 03:49:20.603 [notice] Tor can't help you if you use it wrong! Learn how to be safe at
https://www.torproject.org/download/download#warningFeb 17 03:49:20.603 [notice] Read configuration file "/opt/tor-browser_en-US/Browser/TorBrowser/Data/Tor/torrc-defaults".
Feb 17 03:49:20.603 [notice] Read configuration file "/opt/tor-browser_en-US/Browser/TorBrowser/Data/Tor/torrc".
Feb 17 03:49:20.606 [notice] Opening Socks listener on 127.0.0.1:9150
Feb 17 03:49:20.606 [notice] Opened Socks listener on 127.0.0.1:9150
Feb 17 03:49:20.606 [notice] Opening Control listener on 127.0.0.1:9151
Feb 17 03:49:20.606 [notice] Opened Control listener on 127.0.0.1:9151
Feb 17 03:49:20.000 [notice] Parsing GEOIP IPv4 file /opt/tor-browser_en-US/Browser/TorBrowser/Data/Tor/geoip.
(fire7ox313): IBUS-WARNING **: 03:49:20.628: Unable to connect to ibus: Could not connect: Connection refused
Feb 17 03:49:20.000 [notice] Parsing GEOIP IPv6 file /opt/tor-browser_en-US/Browser/TorBrowser/Data/Tor/geoip6.
Feb 17 03:49:20.000 [notice] Bootstrapped 0% (starting): Starting
Feb 17 03:49:21.000 [notice] Starting with guard context "default"
Feb 17 03:49:21.000 [notice] New control connection opened from 127.0.0.1.
Feb 17 03:49:21.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Feb 17 03:49:21.000 [notice] New control connection opened from 127.0.0.1.
Feb 17 03:49:21.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Feb 17 03:49:22.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Feb 17 03:49:22.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Feb 17 03:49:22.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Feb 17 03:49:22.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Feb 17 03:49:22.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Feb 17 03:49:23.000 [notice] Bootstrapped 100% (done): Done
Feb 17 03:49:24.000 [notice] New control connection opened from 127.0.0.1.
Feb 17 03:49:24.000 [notice] New control connection opened from 127.0.0.1.
Fontconfig warning: "/opt/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf", line 85: unknown element "blank"
Fontconfig warning: "/opt/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf", line 85: unknown element "blank"
Fontconfig warning: "/opt/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf", line 85: unknown element "blank"
(firefox:13): IBUS-WARNING **: 03:49:28.500: Events queue growing too big, will start to drop.
(firefox:13): IBUS-WARNING **: 03:49:28.614: Events queue growing too big, will start to drop.
(firefox:13): IBUS-WARNING **: 03:49:28.730: Events queue growing too big, will start to drop.
(firefox:13): IBUS-WARNING **: 03:49:28.856: Events queue growing too big, will start to drop.
(firefox:13): IBUS-WARNING **: 03:49:31.145: Events queue growing too big, will start to drop.
Feb 17 03:49:33.000 [notice] Owning controller connection has closed -- exiting now.
Feb 17 03:49:33.000 [notice] Catching signal TERM, exiting cleanly.
@ixuu153 commented on GitHub (Feb 18, 2021):
Also tried
straceand found following lines:All I know is that the IBus connection is refused. There is no further information.
@rusty-snake commented on GitHub (Feb 21, 2021):
I already guesed that this is because of the PID-namespace, see https://github.com/netblue30/firejail/issues/3379#issuecomment-632779468.
@rusty-snake commented on GitHub (May 12, 2021):
Closing here. #3379 keeps open to track this.