netblue30 / firejail

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

[Teamspeak 3] the application crashes on opening the options window #1695

Closed ghost closed 6 years ago

ghost commented 6 years ago

I just tried to use the official profile bundled with firejail, only to discover that it causes the application to crash on opening the options window after joining a channel on a voice server.

It does not crash as long as you're not connected to a server; otherwise, Teamspeak will crash on every attempt to open settings if you connected to any server at least once - it's persistent between restarts of the application.

tl;dr 1.Run Teamspeak and join a voice channel on a server; 2.Try to open the options window; crash 3.Run Teamspeak again and do not connect to a server; 4.Try to open the options window; crash

Also: 1.Run Teamspeak without firejail and close it; 2.Run Teamspeak with firejail enabled now; 3.Try to open the options window; it works again 'till you connect to a server and join a channel

Reading profile /etc/firejail/teamspeak3.profile
Reading profile /etc/firejail/teamspeak3.local
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Warning: noroot option is not available
Parent pid 5603, child pid 5604
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 97.49 ms
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
Crashdump ENABLED,  directory is: /home/$HOME/.ts3client/crashdumps
DUMP defined! Dumpdir is: /home/$HOME/.ts3client/crashdumps
2017-12-26 21:04:54.377262|INFO    |              |   |TeamSpeak 3 Client 3.1.7 (2017-12-13 11:07:31)
2017-12-26 21:04:54.377318|INFO    |              |   |SystemInformation: Linux 4.9.71-1-lts #1 SMP Wed Dec 20 19:26:23 CET 2017 x86_64 Binary: 64bit
2017-12-26 21:04:54.377338|INFO    |              |   |Using hardware aes
2017-12-26 21:04:54.384124|DEBUG   |PulseAudio    |   |connected to pulse audio server - 
2017-12-26 21:04:54.400776|INFO    |ClientUI      |   |Unable to create an Open GL context.
2017-12-26 21:04:54.420598|INFO    |Addons        |   |Checking for addon updates...
2017-12-26 21:04:54.535448|INFO    |Plugins       |   |Loading plugin: libclientquery_plugin_linux_amd64.so
2017-12-26 21:04:54.536177|INFO    |Query         |   |listening on 127.0.0.1:[snip]
2017-12-26 21:04:54.624776|INFO    |Addon         |   |Addon up to date.
ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2017-12-26 21:04:54.673117|INFO    |              |   |*** Time [MAINWINDOW]: 280
2017-12-26 21:04:54.673171|INFO    |              |   |*** Time [INIT]: 280
2017-12-26 21:04:54.673302|DEVELOP |ClientUI      |   |Notifications init: Soundpack path: /opt/teamspeak3/sound/default
2017-12-26 21:04:54.674758|INFO    |ClientUI      |   |Failed to init text to speech engine
2017-12-26 21:04:54.674791|INFO    |ClientUI      |   |Qt version: 5.6.1
2017-12-26 21:04:54.674813|INFO    |ClientUI      |   |Using configuration location: /home/$HOME/.ts3client/settings.db
2017-12-26 21:04:55.174114|INFO    |Bookmarks     |   |Collecting autoconnect bookmarks
2017-12-26 21:04:55.174374|INFO    |ClientUI      |   |Last update check was: Tue Dec 26 22:02:10 2017
2017-12-26 21:04:55.174625|INFO    |              |   |Statistics report: User previously denied participation
2017-12-26 21:04:55.586475|INFO    |              |   |successfully downloaded revocation list
2017-12-26 21:04:55.674303|INFO    |Newsticker    |   |Newsticker next check: Tue Dec 26 22:32:11 2017
2017-12-26 21:04:58.131623|INFO    |ClientUI      |1  |Connect to server: [snip]
2017-12-26 21:04:58.132112|INFO    |ClientUI      |1  |Initiating connection: [snip]
2017-12-26 21:04:58.173750|INFO    |PreProSpeex   |1  |Speex version: 1.2rc1
2017-12-26 21:04:58.174503|DEBUG   |PulseAudio    |   |Opening echo stream alsa_output.pci-0000_00_1b.0.iec958-stereo - 
2017-12-26 21:04:58.189054|INFO    |ClientUI      |1  |Connect status: Connecting
2017-12-26 21:04:58.283325|DEVELOP |PktHandler    |   |Puzzle solve time: 3
2017-12-26 21:04:58.386525|INFO    |ClientUI      |1  |Connect status: Disconnected
2017-12-26 21:04:58.386585|INFO    |ClientUI      |1  |Disconnected or forced to leave, want autoreconnect = 0
QMetaObject::connectSlotsByName: No matching signal for on_queued_open_dialog()
QMetaObject::connectSlotsByName: No matching signal for on_account_created(QString,QString)
QLayout: Attempting to add QLayout "" to ProfileManager "", which already has a layout
QLayout: Attempting to add QLayout "" to ProfileManager "", which already has a layout
QLayout: Attempting to add QLayout "" to ProfileManager "", which already has a layout
Installed Qt WebEngine locales directory not found at location /opt/teamspeak3/translations/qtwebengine_locales. Trying application directory...
[1226/220501:FATAL:udev_linux.cc(18)] Check failed: monitor_. 
Breakpad crash /home/$HOME/.ts3client/crashdumps/35392b03-0773-2a06-665a32ba-322c3382.dmp
Starting Error Reporter: /opt/teamspeak3/error_report
/usr/bin/teamspeak3: line 51:    13 Aborted                 (core dumped) ./ts3client_linux_amd64 $@

Parent is shutting down, bye...
smitsohu commented 6 years ago

Hi @Hasbreak, does it work when you start it with firejail --protocol=unix,inet,inet6,netlink teamspeak3?

ghost commented 6 years ago

Hi @smitsohu. Yes, it does work just fine when started using that command (absolutely no crashes when opening the options window under any of circumstances I specified above). However, there's one more lookout to be addressed as Teamspeak doesn't start with /usr/bin/openssl blacklisted by default.

/usr/bin/teamspeak3: line 19: /usr/bin/openssl: Permission denied
Could not find CA certificates location

noblacklist /usr/bin/openssl in /etc/firejail/teamspeak3.local does the job.

Fred-Barclay commented 6 years ago

@Hasbreak Can you try out 96f26b0cec577006917e4385511bf7cf81d6421c and see if it works?

ghost commented 6 years ago

@Fred-Barclay I made the following changes to teamspeak3.profile and none of reported issues is present. It's all fixed. 👍

Fred-Barclay commented 6 years ago

That's great! Thanks @Hasbreak and @smitsohu 👍