mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2229] Cross Compiling Difficulty #1498
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#1498
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 @jreach-dev on GitHub (Oct 31, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2229
Due to firejails minimal dependencies and lightweight design, it is ideal for securing deeply embedded Linux components. Unfortunately it is difficult to cross compile.
Example:
Cross compiling fails because the make system creates a binary, then executes that binary as part of the build process. This naturally impairs cross compiling.
Solution A:
Compile with QEMU. This is very slow but it works great. Fully working samples have been produced for i.MX6 Ultra Lite.
Solution B:
Install QEMU but don't emulate compile with QEMU. Doesn't work because seccomp binary is not statically linked. This would be the ideal route for build automations like Yocto.
Solution C:
Disable seccomp. This works but I want seccomp!
Solution D:
Does the seccomp binary need to be run during the build process?
Solution E:
Compile on embedded host. Not really an option for the type of development I am doing.
What would the best approach to cross compiling be?
@jreach-dev commented on GitHub (Oct 31, 2018):
Sorry. Duplicate of #2044