Comments (5)
Hi, running dynamically linked x86 binary works fine for me using with your nsjail commandline.
My guess is that 32-bit ELF interpreter or one of its dependencies is not in one of the mounted paths.
You can get the interpreter path by running
$ file test_x86
from nsjail.
hi @happyCoder92 ,
Using file
to find the interpreter location, and below is what it outputs:
test_x86: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=7f29c9f9f33886f07d6b6dbe0841c5e788639c50, not stripped
The interpreter is located at /lib/ld-linux.so.2
, however, I've already included the mount point using this -R /lib
argument.
Surprisingly, when I tried to run nsjail
inside my Ubuntu server, it works flawlessly. This problem only occurs when I'm using Arch Linux (tried both from official Arch package and compiling from Github repo) and it still show the error.
Furthermore, I tried also to use -R /
mount point (in case of I missed something). But the same error still appears.
from nsjail.
It might be that /lib/ld-linux.so.2
is a symlink on your Arch box, check where it points to.
With -R /
you also have to change /test_x86
to /home/shahril/Desktop/nsjail-report/RELEASE/test_x86
.
from nsjail.
Please re-open if you'd like some more suggestions
from nsjail.
I experienced this problem. The cause was amusingly and annoyingly trivial. It's because -R /lib64/
is on the command line but that path likely doesn't exist on a 32-bit system. If I remove -R /lib64/
then everything works correctly.
from nsjail.
Related Issues (20)
- Build fails on armv7l (32 bit) HOT 2
- mnt:mountPt fails with invalid argument HOT 1
- Better fs isolation HOT 2
- Using nsjail with GPU and OpenGL HOT 1
- Include installation instructions in the README HOT 1
- Compilation fails HOT 1
- blank
- Updated vendored kafel to enable build on gcc13 HOT 1
- Python Tracing and Runtime security
- Build failed on arm64 with clang-15 HOT 1
- Build Fails when compiling on musl-libc system HOT 6
- config.cc uses old protobuf log handling API that was removed in protobuf 22.0 HOT 1
- SIGTERM Default Handler Issue HOT 1
- Exploring nsjail for Application Isolation with ROS2 HOT 1
- Error while loading shared libraries only when using config file HOT 9
- bind mounted /var/run/netns acts differently if nsjail started before or after network namespace is created HOT 1
- IPC resources should be explicitly cleaned up upon jail exit
- Invalid Argument - clone(flags=CLONE_NEWNS|CLONE_NEWCGROUP|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWUSER|CLONE_NEWPID) failed HOT 5
- Ubuntu 24.x "permission denied" in `mount(/, /)` HOT 5
- How to mount GPU devices correctly in nsjail?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsjail.