You are not logged in.

#1 2016-08-25 13:02:21

replabrobin
Member
Registered: 2010-05-06
Posts: 232

[SOLVED] clone: Invalid argument

I'm trying to learn about user namespaces using eg http://lwn.net/Articles/539941/ or the example code from man 7 user_namespaces. I think I have the code transcribed correctly, but when I run the excutables I always end up with clone returning an error EINVAL.

eg code from man 7 user_namespaces

$ ./userns_child_exec -p -m -U -M '0 1000 1' -G '0 1000 1' bash
clone: Invalid argument

I guess this must be something missing in my system or capabilities, but what?

Edit: finally figured out that arch doesn't allow user namespaces

$ zcat /proc/config.gz  | grep CONFIG_USER_NS
# CONFIG_USER_NS is not set

Last edited by replabrobin (2016-08-25 13:22:12)

Offline

Board footer

Powered by FluxBB