mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3871] vscodium: missing profile redirect: vscodium was renamed to codium #2434
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#2434
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 @mYnDstrEAm on GitHub (Jan 5, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3871
I had a problem of not getting updates for the way to get Visual Studio Code on Debian via a repository instead of the GitHub releases: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/issues/50
I did not get any error or alike and "solved" it by going through that repo's guide in the readme again which I installed VsCodium another time, now not called vscodium but "codium" and the latest version (now I have two VSCodiums installed).
However, when I run
firejail --profile=/etc/firejail/vscodium.profile codiumI now get this error message:I already created a /home/username/.config/firejail/code.local with:
At least two issues remain:
echo $DBUS_SESSION_BUS_ADDRESSreturnsunix:path=/run/user/1000/busAlso from the default vscodium profile it looks like it's not possible to install extensions. Is that correct? If so that should be changed too but it would be a separate issue.
System: Debian10/KDE
Firejail: 0.9.64 (latest from backports)
@rusty-snake commented on GitHub (Jan 5, 2021):
I did not read futher, but
firejail --writable-run-user …shoulde solve at least this message.@mYnDstrEAm commented on GitHub (Jan 5, 2021):
It's solved now, sorry. Was a problem with local profiles.
@mYnDstrEAm commented on GitHub (Jan 5, 2021):
Reopening because if the VsCodium is now called codium the profile's name needs to be changed to be used automatically when running
firejail codium. One could also just copy the vscodium.profile to codium.profile.(Currently it needs to be run like this:
firejail --profile=/etc/firejail/vscodium.profile /usr/bin/codium.firejail --profile=/etc/firejail/vscodium.profile /usr/share/codium/codium --unity-launch %Fandfirejail --profile=/etc/firejail/vscodium.profile /usr/share/codium/codium --new-window %Fdon't work because of:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/share/codium/chrome-sandbox is owned by root and has mode 4755.See here for what seems to be the best improvised solution for this currently; I'm not sure how this could be implemented here and if it needs to be as it also runs without
--no-sandboxwhen not adding any parameters. That part is probably unrelated to firejail but please comment if you know a way to make firejail work when using --new-window)@rusty-snake commented on GitHub (Jan 5, 2021):
See PRs #3688 and #3807. My suggestion
sysctl kernel.unprivileged_userns_clone=1.@rusty-snake commented on GitHub (Jan 5, 2021):
We should add a redirect/alias profile for it.
EDIT: And if
writable-run-useris required, we should add it too.@mYnDstrEAm commented on GitHub (Jan 5, 2021):
Sounds good!
writeable-run-userwasn't required.Edit: only
firejail --profile=/etc/firejail/vscodium.profile /usr/bin/codiumworks, but notfirejail --profile=/etc/firejail/vscodium.profile /usr/share/codium/codium/usr/share/codium/codiumis used in the default .desktop file after installation (it was/usr/share/codium/codium --no-sandbox --unity-launch %F).Don't know about kernel.unprivileged_userns_clone - it seems to be disabled for security reasons and I don't know how it would be useful here.
@rusty-snake commented on GitHub (Jan 6, 2021):
Maybe read #3754.
Is
/usr/bin/codiuma wrapper script for/usr/share/codium/codium?@mYnDstrEAm commented on GitHub (Jan 6, 2021):
It points to /usr/share/codium/bin/codium (
ln -ssays "codium -> /usr/share/codium/bin/codium" so I guess a symbolic link?) which is a very short wrapper script. Strangely, if I read it right that script should only run/usr/share/codium/codium. The relevant part is:@mYnDstrEAm commented on GitHub (Jan 8, 2021):
There's probably some permissions set that allows /usr/bin/ but not /usr/share -
firejail --profile=/etc/firejail/vscodium.profile /usr/share/codium/codiumshould work with the profile too.@rusty-snake commented on GitHub (Jan 9, 2021):
Just to be sure,
firejail --noprofile /usr/share/codium/codiumworks?@rusty-snake commented on GitHub (Apr 6, 2021):
Any progress here?
@kmk3 commented on GitHub (Oct 4, 2021):
@rusty-snake commented on Apr 6:
I think I got it; will submit a PR later.
@kmk3 commented on GitHub (Oct 5, 2021):
Quoting the first post of the following discussion (as a sort of +1):
@henrythebuilder on Jul 26:
@kmk3 commented on GitHub (Oct 5, 2021):
Potentially caused by:
Kind of relates to: