Giter Club home page Giter Club logo

Comments (5)

happyCoder92 avatar happyCoder92 commented on September 27, 2024

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.

shahril96 avatar shahril96 commented on September 27, 2024

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.

happyCoder92 avatar happyCoder92 commented on September 27, 2024

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.

robertswiecki avatar robertswiecki commented on September 27, 2024

Please re-open if you'd like some more suggestions

from nsjail.

tomjaguarpaw avatar tomjaguarpaw commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.