Skip to content
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

syscall: TestAmbientCapsUserns failed while unprivileged_userns_clone file is missing #32459

Closed
mengzhuo opened this issue Jun 6, 2019 · 1 comment

Comments

@mengzhuo
Copy link
Contributor

mengzhuo commented Jun 6, 2019

What version of Go are you using (go version)?

$ go version
go version devel +064ce85c20 Thu Jun 6 00:12:22 2019 +0000 linux/arm64

Does this issue reproduce with the latest release?

No

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/root/godev"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/root/godev/pkg/tool/linux_arm64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/root/godev/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build9264487
45=/tmp/go-build -gno-record-gcc-switches"

What did you do?

build go with ./all.bash -v

What did you expect to see?

all build and test passed

What did you see instead?

--- FAIL: TestAmbientCapsUserns (0.02s)
    exec_linux_test.go:666: fork/exec /tmp/gotest616948564: invalid argument

I think it's related to CL166460 and #30698.

If /proc/sys/kernel/unprivileged_userns_clone is missing the test will continue and failed eventually.

@gopherbot
Copy link

Change https://golang.org/cl/180877 mentions this issue: syscall: skip non-root user namespace test if kernel file is missing

@golang golang locked and limited conversation to collaborators Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants