-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: TestUnshare fails with "operation not permitted", even with CONFIG_NET_NS=y #17206
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
Comments
Are you running inside some kind of container that blocked
new net namespace creation?
|
I am running it in a physical machine (Hikey board, debian-jessie), not in a container. |
Which kernel? Maybe it doesn't have CONFIG_NET_NS=y set? |
The kernel is 3.1.8-linaro-hikey.
|
The test already checks for the existence of /proc/self/ns/net
before the exec, so I don't think the reason is lack of networking
namespace support.
|
3.1 still sounds pretty old but I certainly don't know the details here, On 26 September 2016 at 13:16, Hun Jae Lee notifications@github.com wrote:
|
Saw this issue in a docker container: --- FAIL: TestUnshare (0.00s) If test is skipped, build is successful. go version devel +3cbfcaa Mon Oct 24 02:33:39 2016 +0000 linux/amd64 |
Ran into this today using docker:
|
@CAFxX, privileged container or not? Kernel version? What does "ubuntu:latest" currently resolve to? |
CL https://golang.org/cl/48571 mentions this issue. |
FWIW I verified that go1.9 docker builds work if you use the --privileged. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?none
What operating system and processor architecture are you using (
go env
)?linux arm64
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
I am building go1.7.1 on my arm64 machine, with go-linux-arm64-bootstrap.
I performed all.bash in src directory.
What did you expect to see?
Completed build without any error.
What did you see instead?
Build failed with the following error
So, I changed the exec_linux_test.go from this,
to this,
After those changes, building finished without error.
The text was updated successfully, but these errors were encountered: