diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2019-09-30 11:47:04 +0200 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2019-09-30 16:12:05 +0000 |
commit | ba18c7c42d4fa70e81b2304ccc3b2c01675a3af0 (patch) | |
tree | e2caa8494d0e5a23a6341ddadb2ab1cac5b8e77b /src/syscall/exec_linux_test.go | |
parent | 5f1aeaeb77b36b92305b54acc4bd6a3319dce803 (diff) | |
download | go-ba18c7c42d4fa70e81b2304ccc3b2c01675a3af0.tar.gz go-ba18c7c42d4fa70e81b2304ccc3b2c01675a3af0.zip |
syscall: fix TestGroupCleanupUserNamespace on CentOS
Update the list of expected "id" outputs in
TestGroupCleanupUserNamespace with SELinux context information as used
on CentOS.
Fixes #34547
Change-Id: I426bbe2d04e2039c87490362a1891ec3de6e36e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/197841
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
-rw-r--r-- | src/syscall/exec_linux_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go index f7fab7b659..acf84128ef 100644 --- a/src/syscall/exec_linux_test.go +++ b/src/syscall/exec_linux_test.go @@ -309,6 +309,7 @@ func TestGroupCleanupUserNamespace(t *testing.T) { "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)", // Alpine; see https://golang.org/issue/19938 + "uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023", // CentOS with SELinux context, see https://golang.org/issue/34547 } for _, e := range expected { if strOut == e { |