mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3795] teams: program does not start (seccomp/tracelog) #2397
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#2397
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 @tirasdude on GitHub (Dec 7, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3795
Background:
Ubuntu 20.04 AMD64
Nvidia Quadro on Nvidia 450 Driver
Installed from deb package (firejail_0.9.64-apparmor_1_amd64.deb) from here: https://sourceforge.net/projects/firejail/files/firejail/
MS Teams: teams_1.3.00.30857_amd64
skype and zoom work fine
Issue:
During start get this message:
Reading profile /etc/firejail/teams.profile
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Reading profile /etc/firejail/electron.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Warning: Warning: NVIDIA card detected, nogroups command disabled
Parent pid 17948, child pid 17949
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: not remounting /run/user/1000/gvfs
Warning: not remounting /run/user/1000/doc
Warning: cleaning all supplementary groups
Blacklist violations are logged to syslog
Warning: cleaning all supplementary groups
Child process initialized in 131.45 ms
Parent is shutting down, bye...
Syslog output:
Dec 7 20:55:11 linux systemd[1]: fwupd.service: Succeeded.
Dec 7 20:55:15 linux kernel: [10615.421160] audit: type=1326 audit(1607360115.564:51): auid=1000 uid=1000 gid=1000 ses=2 pid=18900 comm="teams" exe="/usr/share/teams/teams" sig=31 arch=c000003e syscall=161 compat=0 ip=0x7efe3eeca89d code=0x0
Dec 7 20:55:15 linux kernel: [10615.643281] traps: teams[18895] trap int3 ip:560a38ae97c5 sp:7ffd845749a0 error:0 in teams[560a357d7000+53c4000]
Any ideas what it could be?
Thanks
@rusty-snake commented on GitHub (Dec 7, 2020):
Thanks for reportin, should be fixed.
OT: Should we move
!chrootinto electro.profile?@tirasdude commented on GitHub (Dec 8, 2020):
Hi again,
Did not really get fixed :(
Reading profile /etc/firejail/teams.profile
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Reading profile /etc/firejail/electron.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Warning: Warning: NVIDIA card detected, nogroups command disabled
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 12656, child pid 12657
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Warning: not remounting /run/user/1000/gvfs
Warning: not remounting /run/user/1000/doc
Warning: cleaning all supplementary groups
Blacklist violations are logged to syslog
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Warning: cleaning all supplementary groups
Child process initialized in 135.05 ms
Parent is shutting down, bye...
Syslog:
Dec 8 18:28:31 linux kernel: [30811.423948] teams[12676]: segfault at 328 ip 00007f3ec53f0c6f sp 00007fff0a1bc398 error 4 in libpthread-2.31.so[7f3ec53e6000+11000]
Dec 8 18:28:31 linux kernel: [30811.423972] Code: 44 00 00 b8 16 00 00 00 c3 66 90 f3 0f 1e fa 83 ff 1f 77 3f 89 f8 48 83 c0 31 48 c1 e0 04 64 48 8b 14 25 10 00 00 00 48 01 d0 <4c> 8b 40 08 4d 85 c0 74 16 89 ff 48 8d 15 bf c6 00 00 48 8b 30 48
Dec 8 18:28:31 linux kernel: [30811.643259] traps: teams[12671] trap int3 ip:5573dca927c5 sp:7ffe3f182750 error:0 in teams[5573d9780000+53c4000]
@rusty-snake commented on GitHub (Dec 8, 2020):
New error, next issues.
tracelogbreaks chromium, I wonder why teams have set it, can you tryfirejail --ignore=tracelog teams. If this did not help, I've no idea what it could be. Either teams is badly programmed and fails on a blacklist (admittedly, it is from M$ written in javascript and uses electron), or it is seccomp, protocol, nonewprivs, noroot, nogroups, caps.drop all, dbus-user none. Try to comment them.@micressor commented on GitHub (Dec 9, 2020):
I am not sure if this has anything to do with the nvidia card. Maybe I have to open a separate issue for it?
It works for me this way (since teams 1.3.00.30857) on debian 10 with firejail 0.9.64:
I was also not able to debug that better:
@jvonhoff commented on GitHub (Dec 9, 2020):
FWIW, I applied change a37c7d4 to /etc/firejail/teams.profile -- adding
seccomp !chroot-- and was still unable to start teams.However, running it with
firejail --ignore=tracelog /usr/bin/teamsis working for me. Thanks!@tirasdude commented on GitHub (Dec 9, 2020):
Hello Everyone!
Launching with --ignore=tracelog option [terminal command:
firejail --ignore=tracelog teams] does indeed start it and it seems to work fine.Guess that is the workaround for now.
Thank you for your help!
@rusty-snake commented on GitHub (Dec 9, 2020):
FYI
--ignore=quxqaxif you uses--build.--builduses no profilenonewprivsandcaps.drop all--builduses--traceand both will break if tracelog breaks.It's the final solution.
tracelogbreaks firefox and chromium (=electron=teams).@rusty-snake commented on GitHub (Dec 9, 2020):
What does
sysctl kernel.unprivileged_userns_cloneshow?@micressor: 0 because debian
@tirasdude: 1 on ubuntu?
@jvonhoff: ?
@tirasdude commented on GitHub (Dec 9, 2020):
kernel.unprivileged_userns_clone = 1
@rusty-snake commented on GitHub (Dec 9, 2020):
Background: #2946 and #3688
@micressor
firejail --ignore=nonewprivs --ignore=noroot --ignore=protocol --ignore=seccomp --ignore=caps.drop --caps.keep=sys_admin,sys_chroot /usr/bin/teamsshould work on debian. If so I add it.@jvonhoff commented on GitHub (Dec 9, 2020):
BTW, I use Arch ;)
kernel.unprivileged_userns_clone = 1
@micressor commented on GitHub (Dec 10, 2020):
kernel.unprivileged_userns_clone = 0
@micressor commented on GitHub (Dec 10, 2020):
@rusty-snake: That works for me - thanks!