mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #744] blacklisting a symbolic link causes firejail to fail on jessie/armhf #503
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#503
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 @tdaitx on GitHub (Aug 25, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/744
Debian jessie has a lot of symbolic links to gcc programs in /usr/bin (eg. gcc -> gcc-4.9) and that makes firejail fail with the message
Error: cannot establish communication with the parent, exiting...A simple testcase to reproduce the issue:
link-test.profile contains:
It will fail as:
Using a blacklist mask causes the same error:
Trying to whitelist the real file as bellow does not help at all:
Using the overlay does not help as well.
System information:
Firejail package version on jessie: 0.9.40-3~bpo8+
Note: the same test works just fine on adm64 with the package version 0.9.38-1.
Please let me know how else I can help.
@manevich commented on GitHub (Aug 25, 2016):
Confirm it on Debian Jessie, ARMv7 Processor rev 5 (v7l) with latest git.
firejail --noprofile --blacklist=testworks fine@manevich commented on GitHub (Aug 25, 2016):
Well, looks like problem is call to realpath in disable_file function on https://github.com/netblue30/firejail/blob/master/src/firejail/fs.c#L200
But I currently have no idea why it crashes.
Seems unrelated to firejail version, 0.9.38 and 0.9.36 built from git fail too.
Simple test snippet
compiled using
gcc -ggdb -O2 -fPIE -pie -Wformat -Wformat-security realpath-test.c -o realpath-testworks fine@manevich commented on GitHub (Aug 25, 2016):
From output of
strace firejail --noprofile --blacklist=/home/user/test.link:Segfault in
realpathfunction.It's not specific to blacklisting,
firejail --noprofile --whitelist=/home/user/test.linkfails with same diagnostics.Still no clues what exactly triggers it.
@tdaitx commented on GitHub (Aug 26, 2016):
This is a backtrace from gdb:
@tdaitx commented on GitHub (Aug 26, 2016):
In case anyone wants to generate a debug build in Debian see this patch:
Copy and paste, beware that git removes the tabs.
@laino commented on GitHub (Sep 18, 2017):
Can confirm this is still an issue, especially because /var is full of symlinks and you may want to do something like:
@chiraag-nataraj commented on GitHub (Aug 20, 2018):
Is this still an issue? I have an older Raspberry Pi which is running Debian armel that I can test.
@chiraag-nataraj commented on GitHub (Aug 20, 2018):
I cannot replicate this issue on my Raspberry Pi running Debian armel. @tdaitx @manevich @laino if y'all still have this issue, please feel free to re-open, but since there hasn't been any activity since September, I'm going to go ahead and close this for now.