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: TestGroupCleanupUserNamespace test failure on CentOS #34547

Closed
walnut-tom opened this issue Sep 26, 2019 · 2 comments
Closed

syscall: TestGroupCleanupUserNamespace test failure on CentOS #34547

walnut-tom opened this issue Sep 26, 2019 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@walnut-tom
Copy link

walnut-tom commented Sep 26, 2019

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

$ go version
go version go1.13 linux/amd64

$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/workspace/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/opt/app/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/app/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/opt/app/go-go1.13.1/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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build811145108=/tmp/go-build -gno-record-gcc-switches"

What did you do?

tar -xvf go-go1.13.1.tar.gz
cd go-go1.13.1/src
bash all.bash

##### Testing packages.
[...]
--- FAIL: TestGroupCleanupUserNamespace (0.02s)
    exec_linux_test.go:314: id command output: "uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023", expected one of ["uid=0(root) gid=0(root) groups=0(root)" "uid=0(root) gid=0(root) groups=0(root),65534(nobody)" "uid=0(root) gid=0(root) groups=0(root),65534(nogroup)" "uid=0(root) gid=0(root) groups=0(root),65534" "uid=0(root) gid=0(root) groups=0(root),65534(nobody),65534(nobody),65534(nobody),65534(nobody),65534(nobody),65534(nobody),65534(nobody),65534(nobody),65534(nobody),65534(nobody)"]
FAIL
FAIL	syscall	3.238s
[...]
FAIL
2019/09/26 11:14:49 Failed: exit status 1
@ALTree ALTree changed the title FAIL: TestGroupCleanupUserNamespace syscall: TestGroupCleanupUserNamespace test failure on CentOS Sep 26, 2019
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 26, 2019
@tklauser
Copy link
Member

This is due to the SELinux context information in id output, see http://selinuxproject.org/page/SELinux_contexts and http://selinuxproject.org/page/Guide/Contexts

We should probably add this to the range of expected strings.

@gopherbot
Copy link

Change https://golang.org/cl/197841 mentions this issue: syscall: fix TestGroupCleanupUserNamespace on CentOS

@golang golang locked and limited conversation to collaborators Sep 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants