mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5939] inconsistent behavior when PATH in not set #3136
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#3136
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 @arenevier on GitHub (Aug 2, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5939
Description
When PATH is not set, the behavior depends on whether the profile contains a ${PATH} variable
Describe the bug
Steps to Reproduce
Expected behavior
I expect the behavior to be coherent. Either a default PATH is always set, either it is never set.
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)@ghost commented on GitHub (Aug 2, 2023):
Not sure if Firejail can do much about this if the OS or its user(s) decide to unset PATH. Besides the whole
desktop integrationfeature/logic breaking without PATH being set (maybe we could handle such a case in firecfg) there's bound to be heaps of trouble outside of sandboxing when running a system in such a way.I might be missing things in this context, but why would one want to unset a vital environment variable like PATH?
@arenevier commented on GitHub (Aug 2, 2023):
I agree that PATH should be set.
But when it is not set, firejail will set a default value in
init_paths. And that method might or might not be called depending on the content of the profile.https://github.com/netblue30/firejail/blob/master/src/firejail/paths.c#L29