mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1781] Unable to build profile for mono binaries run by binfmt-support #1206
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#1206
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 @ckuethe on GitHub (Feb 21, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1781
I have ckan in my home directory which is a mono (.net) binary. I have binfmt-support installed which magically invokes mono if I just set the
xbit on the binary, so./ckanworks from a shell. The firejail profile builder is unable to figure out what to do though.Host info as requested:
Kernel:
4.15.4-041504-generic #201802162207 SMP Fri Feb 16 22:08:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux... and firejail stops here, and the app doesn't run
@Fred-Barclay commented on GitHub (Feb 21, 2018):
G'day @ckuethe !
What does
firejail --noprofile /home/ckuethe/bin/ckando?@ckuethe commented on GitHub (Feb 21, 2018):
As ckan is a mono binary, I told firejail to run mono and
firejail --build=ckan.profile mono /home/ckuethe/bin/ckanis able to generate a profile.@ckuethe commented on GitHub (Feb 21, 2018):
@SkewedZeppelin commented on GitHub (Feb 21, 2018):
/proc/sys/fs/binfmt_misc is blocked by default, which is where handlers are registered.
It'll probably need to be whitelisted in src/firejail/fs.cIt is actually explicitly blacklisted (odd that grep didn't find that for me the first time) here https://github.com/netblue30/firejail/blob/master/src/firejail/fs.c#L570
It was added in
d7b05860cf@ckuethe commented on GitHub (Feb 21, 2018):
Even when running with
--noprofile?@SkewedZeppelin commented on GitHub (Feb 21, 2018):
@ckuethe even with --noprofile there are still a few restrictions in place, restricted /proc being one of them