-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Argument - clone(flags=CLONE_NEWNS|CLONE_NEWCGROUP|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWUSER|CLONE_NEWPID) failed #232
Comments
I am facing same issue. |
I couldn't replicate this at the moment on my machine. Can you please post the following:
|
@okunz Yes, here is the
This is how I am executing the script:
And this is the full log output after adding
|
Your log output shows that something is wrong with how you invoke the nsjail. Have you tried it out by running nsjail directly on the cmdline? I suggest you try both, with the config file and if that doesn't work then also by using the cmdline args (to ensure it's not also related to #229 |
Check out my response to #229. The default config values might be different when using In addition, you need to pass the parameters for nsjail before the Further, you likely have to specify the full path of the binaries, both for nsjail and for python3 in your example. With the points mentioned above, I could not replicate the issue that you report. I think for your debugging, try to find out what argument is reported as invalid. |
I ran into similar issue in a non-privileged container environment. Disabling all the clone related flags work for me: nsjail --verbose \
--disable_clone_newnet \
--disable_clone_newuser \
--disable_clone_newns \
--disable_clone_newpid \
--disable_clone_newipc \
--disable_clone_newuts \
--disable_clone_newcgroup \
python3 |
Hi,
I am trying to run nsjail with a very simple python script and am getting the following:
The last lines seem to be the error:
I have seen similar issues such as #111 and have tried adding this
--disable_clone_newcgroup
flag, but it doesn't seem to help. Any advice on how I can proceed?The text was updated successfully, but these errors were encountered: