Open ukai opened 3 years ago
It's not currently supported. The problem here is nsjail will issue a x86_64 execve syscall, so you would need a seccomp policy that supports both archs.
The easiest workaround is to compile nsjail as 32-bit binary.
using 32-bit nsjail might not be a solution, as target programs may mix of ELF64/32? (e.g. run ELF-64 bash and it launches ELF-32 executable?)
any plan to add support?
The easiest workaround is to compile nsjail as 32-bit binary.
Is that actually supported? When I try to compile on a 32-bit system I run into https://github.com/google/nsjail/issues/149. The comment https://github.com/google/nsjail/issues/149#issuecomment-669141295 suggests that 32-bit is not supported. Can anyone clarify?
How can we configure seccomp-bpf for ELF32 executable launched by ELF64 nsjail?
execve
seems to be needed for nsjail's execve itself. I think syscall=45 isbrk
in i386 (not recvfrom in arm64).