mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1786] Error clone: main.c:2517 main: Invalid argument #1209
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#1209
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 @fl-chris on GitHub (Feb 25, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1786
Hardware Rock64 (arm64), 4GB ram.
OS: Ubuntu bionic.
Firejail version 0.9.52 and firejail-profiles.
Get the following error when I try to use Firejail Firefox and Firejail Chromium browser.
Reading profile /etc/firejail/chromium.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Error clone: main.c:2517 main: Invalid argument
Anyone know what is wrong and how to fix it ?
@netblue30 commented on GitHub (Mar 5, 2018):
I think you are the first to try it on arm64. Do you have namespaces compiled in the kernel? Look under /boot in the config file, you should see:
Also look for seccomp:
@fl-chris commented on GitHub (Mar 5, 2018):
Hi, and Thanks for your reply.
Yes, all 8 lines is in the config file with "*=y".
Do you have other suggestions?
@johnblommers commented on GitHub (Jul 31, 2018):
I compiled the source code of Firejail version 0.9.54 and did the standard installation without error. I can confirm that this exact issue also manifests on the Pinebook64 which is an arm64 machine running Ubuntu 16.04 LTS MATE. Examining the
/proc/config.gzfile reveals just one kernel parameter from the above list not present. We do not see this line:The effect is that we cannot use firejail on the Pinebook64.
@kevinclevenger commented on GitHub (May 21, 2019):
Using a NanoPC T4 with current Armbian 4.4.178-rk3399. The kernel has all the above options and still get:
Error clone: main.c:2517 main: Invalid argument
@railgauge commented on GitHub (Oct 7, 2022):
I get the same error on an Arch Arm aarch64 chroot running on Android 9, kernel 4.4.153-perf+
Error clone: main.c:3030 main: Invalid argumentI tried firejail version 0.9.70 and firejail-git (0.9.71)
/proc/config.gz has these options:
I also tested on a Pinephone Pro aarch64 with newer kernels
/proc/config.gz all aforementioned kernel options are =y
Danctnix Arch kernel 5.17.0-rc8-1
Manjaro Arm kernel 5.19.1-1
It seems to be working when I try "firejail --net=none firefox", the program opens and cannot connect to internet although some warnings are displayed in the terminal:
Seems to be related to older kernel versions? Is this fixable or are devices with old kernels out of luck?
@rusty-snake commented on GitHub (Oct 7, 2022):
You should try with --noprofile and --profile=noprofile. However as long as we don't have an option to opt-out of a private pid ns,
CONFIG_PID_NS=ywill be required I guess.@railgauge commented on GitHub (Oct 7, 2022):
Thank you for your response, --noprofile and --profile=noprofile did not solve the issue, seems like my particular case has multiple issues (clone function and PID namespaces). Pardon my ignorance but could you elaborate at a higher level on the use of CONFIG_PID_NS in firejail? Should a new issue be opened if this is this feasible to work around in the future, and what (if any) consequences/compromises might this have?
@rusty-snake commented on GitHub (Oct 7, 2022):
ATM firejail always creates a new pid namespace for the sandbox (see
man pid_namespacesfor what pid namespaces are). If the kernel does not support this (noCONFIG_PID_NS=y), firejail hardfails.This force pid namespace is also the cause for other issues making some programs unable or not usable to run in firejail.
So there are two things that should be done someday:
The consequence for sandboxing are rather drastic if the pid ns is shared.