mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #7037] paths containing ".." are valid, why are they refused? #3462
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#3462
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 @Dieterbe on GitHub (Jan 20, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7037
Description
The firejail code explicitly forbids '..' here https://github.com/netblue30/firejail/blob/master/src/firejail/fs_whitelist.c#L622
Various checks against ".." have been part of the codebase for at least 10 years.. i suppose in some cases because the ".." can mean parent dir; but there are legitimate cases where filenames contain ".." (literally, no symbolism) and those break in firejail
Steps to Reproduce
Steps to reproduce the behavior
/run/user/1000/wayland-1-swww-daemon..sockwhich looks a bit weird, but is legal, and apparently deliberate.Expected behavior
don't error and run ssh (or flameshot) as expected
Actual behavior
errors, see above
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Works fine:
Additional context
Any other detail that may help to understand/debug the problem
Environment
Checklist
firejail /usr/bin/vlcinstead offirejail vlc; seehttps://github.com/netblue30/firejail/issues/2877)/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)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program