Giter Club home page Giter Club logo

Comments (6)

robertswiecki avatar robertswiecki commented on September 27, 2024 1

So, --chroot is not required, it merely says

Bind /chroot as the new /

This should work

$ ./nsjail -Ml --port 9000 --user 99999 --group 99999  -R /bin/ -R /lib -R /lib64/  -- /bin/sh -i

from nsjail.

robertswiecki avatar robertswiecki commented on September 27, 2024 1

Also, ldd is your friend when assessing which directories to include

$ ldd /bin/sh
	linux-vdso.so.1 =>  (0x00007ffc20bdb000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fc2d9ff4000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc2d9df0000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc2d9a27000)
	/lib64/ld-linux-x86-64.so.2 (0x000056244eb4e000)

from nsjail.

robertswiecki avatar robertswiecki commented on September 27, 2024 1

Ah.. you mean the README.md example? Let me check...

Ok... the assumption here is that you have a valid file-system inside /chroot - that you can install e.g. via debootstrap

from nsjail.

ebadi avatar ebadi commented on September 27, 2024

Thanks @robertswiecki, maybe it is meant to be like this(?):

./nsjail -Ml --port 9000 --user 99999 --group 99999  --chroot /   -- /bin/sh -i

Anyway, getting an error message on the first try is probably not desirable.
I also suggest to add a short build instruction with the list of needed packages.
I found Dockerfile helpful.

from nsjail.

ebadi avatar ebadi commented on September 27, 2024

Just started using nsjail to sandbox some python scripts and it was disappointing to see strange errors for the basic use cases in README.md. Now it is clear. :) Thanks.

  • Suggestion: it is time saving and reassuring if basic use cases are well explained and straightforward to test.

from nsjail.

robertswiecki avatar robertswiecki commented on September 27, 2024

Thanks.

I've done some README.md changes in ed2bf6e - Hope this helps.

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.