[GH-ISSUE #448] Building on ARM #323

Closed
opened 2026-05-05 05:36:01 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @lepasserby on GitHub (Apr 17, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/448

Hi!
I need to build firejail for Cubieboard 2 (CPU is A20, a dualcore Cortex A7) from source.
OS will likely be notoriously kvetchy Cubian (I could try Ubuntu but with GUI it's a mite too taxing the poor little ARM thing)

Is it possible? Should I look out for something in particular?

Originally created by @lepasserby on GitHub (Apr 17, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/448 Hi! I need to build firejail for Cubieboard 2 (CPU is A20, a dualcore Cortex A7) from source. OS will likely be notoriously kvetchy Cubian (I could try Ubuntu but with GUI it's a mite too taxing the poor little ARM thing) Is it possible? Should I look out for something in particular?
gitea-mirror 2026-05-05 05:36:01 -06:00
Author
Owner

@reinerh commented on GitHub (Apr 17, 2016):

Debian provides firejail also for armhf/armel/arm64 [1], so yes, it's possible.

1: https://packages.debian.org/unstable/firejail

<!-- gh-comment-id:211024299 --> @reinerh commented on GitHub (Apr 17, 2016): Debian provides firejail also for armhf/armel/arm64 [1], so yes, it's possible. 1: https://packages.debian.org/unstable/firejail
Author
Owner

@figue commented on GitHub (Apr 17, 2016):

I'm running firejail in a Cubietruck (A20) with a mainline kernel 4.4.7:

[root@suntk ~]# uname -a
Linux suntk 4.4.7 #2 SMP Sun Apr 17 19:43:47 CEST 2016 armv7l GNU/Linux

Firejail works, but it seems that seccomp is not detected or can't be enabled for a reason I don't know:

Warning: seccomp disabled, it requires a Linux kernel version 3.5 or newer.

@netblue30 can you confirm if seccomp should work in an arm system? I have enabled this option in kernel config:

[root@suntk ~]# zgrep SECCOMP /proc/config.gz 
CONFIG_SECCOMP=y
<!-- gh-comment-id:211119514 --> @figue commented on GitHub (Apr 17, 2016): I'm running firejail in a Cubietruck (A20) with a mainline kernel 4.4.7: ``` [root@suntk ~]# uname -a Linux suntk 4.4.7 #2 SMP Sun Apr 17 19:43:47 CEST 2016 armv7l GNU/Linux ``` Firejail works, but it seems that seccomp is not detected or can't be enabled for a reason I don't know: `Warning: seccomp disabled, it requires a Linux kernel version 3.5 or newer.` @netblue30 can you confirm if seccomp should work in an arm system? I have enabled this option in kernel config: ``` [root@suntk ~]# zgrep SECCOMP /proc/config.gz CONFIG_SECCOMP=y ```
Author
Owner

@reinerh commented on GitHub (Apr 17, 2016):

You are missing CONFIG_SECCOMP_FILTER.

<!-- gh-comment-id:211119826 --> @reinerh commented on GitHub (Apr 17, 2016): You are missing CONFIG_SECCOMP_FILTER.
Author
Owner

@netblue30 commented on GitHub (Apr 18, 2016):

Yes, seccomp works fine on ARM. There seem to be another kernel setting, CONFIG_HAVE_ARCH_SECCOMP_FILTER=y:

$ grep -i seccomp /boot/config-*
/boot/config-3.16.0-4-amd64:CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
/boot/config-3.16.0-4-amd64:CONFIG_SECCOMP_FILTER=y
/boot/config-3.16.0-4-amd64:CONFIG_SECCOMP=y
/boot/config-4.3.0-0.bpo.1-amd64:CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
/boot/config-4.3.0-0.bpo.1-amd64:CONFIG_SECCOMP_FILTER=y
/boot/config-4.3.0-0.bpo.1-amd64:CONFIG_SECCOMP=y
<!-- gh-comment-id:211420579 --> @netblue30 commented on GitHub (Apr 18, 2016): Yes, seccomp works fine on ARM. There seem to be another kernel setting, CONFIG_HAVE_ARCH_SECCOMP_FILTER=y: ``` $ grep -i seccomp /boot/config-* /boot/config-3.16.0-4-amd64:CONFIG_HAVE_ARCH_SECCOMP_FILTER=y /boot/config-3.16.0-4-amd64:CONFIG_SECCOMP_FILTER=y /boot/config-3.16.0-4-amd64:CONFIG_SECCOMP=y /boot/config-4.3.0-0.bpo.1-amd64:CONFIG_HAVE_ARCH_SECCOMP_FILTER=y /boot/config-4.3.0-0.bpo.1-amd64:CONFIG_SECCOMP_FILTER=y /boot/config-4.3.0-0.bpo.1-amd64:CONFIG_SECCOMP=y ```
Author
Owner

@figue commented on GitHub (Apr 18, 2016):

Thanks, I had to disable CONFIG_OABI_COMPAT to enable the other settings. It was a bit hard to figure it out. Now, warning message is gone and seccomp seems to work.

<!-- gh-comment-id:211570199 --> @figue commented on GitHub (Apr 18, 2016): Thanks, I had to disable CONFIG_OABI_COMPAT to enable the other settings. It was a bit hard to figure it out. Now, warning message is gone and seccomp seems to work.
Author
Owner

@netblue30 commented on GitHub (Apr 19, 2016):

CONFIG_OABI_COMPAT also seems to be disabled in Debian kernels.

<!-- gh-comment-id:211914235 --> @netblue30 commented on GitHub (Apr 19, 2016): CONFIG_OABI_COMPAT also seems to be disabled in Debian kernels.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#323
No description provided.