mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5012] vscode: cannot access own config directory (whitelisting issue) #2855
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#2855
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 @Gerenuk on GitHub (Mar 5, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5012
Description
Running visual studio code seems to have important directories inaccessible unless the home directory is explicitely whitelisted.
Steps to Reproduce
I'm running
firejail /usr/bin/code --no-sandbox --unity-launchas these options forcodewere already preconfigured by the usual desktop link. Without--no-sandboxit would not start.Expected behavior
It should start and load my theme from the extensions.
Actual behavior
Visual studio code starts, but apparently does not see a lot of required files. In particular the directory
~/.vscode/extensionsappears empty when trying to open a file from vscode whereas in reality there are extension folders inside. It does not load the theme therein either. None of my usual home folders are visible. (Is that intended?)However, everything seems to work if I white list
whitelist ~Behavior without a profile
--noprofileseems fine.Environment
Linux: Manjaro (Archlinux based)
firejail 0.9.68
Log
Output of
firejail /usr/bin/code --no-sandbox --unity-launchOutput of
firejail --debug /usr/bin/code --no-sandbox --unity-launchEdit by @kmk3: Fix formatting.
@rusty-snake commented on GitHub (Mar 5, 2022):
https://github.com/netblue30/firejail/pull/4727/files#diff-046ffcfd2a399dd76a2a4d5220f83814a89dc2bd059b2e2c0fd089e1db06dec9
Same as #4965/#4929 but for
include electron.profileprofiles.@smitsohu commented on GitHub (Mar 5, 2022):
I think we need to ignore
whitelist ${HOME}/.config/Electronandwhitelist ${HOME}/.config/electron-flag*.conf.@rusty-snake commented on GitHub (Mar 5, 2022):
must be added to
#2882