mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3904] VScode can't execute certain script when seccom is enabled #2448
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#2448
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 @GreatBigWhiteWorld on GitHub (Jan 20, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3904
Bug and expected behavior
Simple python code as the following would hang when executed:
It is expected to draw a simple bar chart but the execution would just hang there forever.
I tried to disable "seccom" in the /etc/firejail/code.profile and the script would then show the chart as expected.
Reproduce
Steps to reproduce the behavior:
firejail codeEnvironment
@rusty-snake commented on GitHub (Jan 20, 2021):
If you replace the
seccompline in vscode withseccomp !kcmporseccomp !mbind, does it work then? If not, run with--seccomp-error-action=logand watch your syslog for the violation.@GreatBigWhiteWorld commented on GitHub (Jan 20, 2021):
Both !kcmp and !mbind work. Which one should I use?
Do you suggest that I make a code.local? If so, what content should I put in the file?
@rusty-snake commented on GitHub (Jan 20, 2021):
❓ ❗ 🤯
Can you run with
--seccomp-error-action=log.@GreatBigWhiteWorld commented on GitHub (Jan 21, 2021):
Where do I check its log? The terminal shows nothing new after running with
--seccomp-error-action=logIn syslog when vscode is run there is this:
[system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.73' (uid=1000 pid=11351 comm="/usr/share/code/code --no-sandbox ")Why does vscode request bluetooth service??
When running with code.local which has "seccomp !kcmp" and
--seccomp-error-action=logit's the same result except that the chart can show fine.@rusty-snake commented on GitHub (Jan 21, 2021):
Watch
journalctl --grep=SECCOMP --followwhile starting vscode.Logging must be done without exceptions (e.g.
firejail --seccomp --seccomp-error-action=log --ignore=seccomp …)seccomp-error-action=logis like SELinux in permissive mode or AppArmor in complaining mode.@rusty-snake commented on GitHub (Jan 21, 2021):
!mbindis definitely required, because numpy requires it and numpy is a dependency of pandas, see https://github.com/pandas-dev/pandas#dependencies.!kcmpis required too if you have an AMD GPU.@GreatBigWhiteWorld commented on GitHub (Jan 21, 2021):
Alright, thanks.