aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Bajaj <rahulrb0509@gmail.com>2021-06-15 11:32:13 +0000
committerIan Lance Taylor <iant@golang.org>2021-06-21 22:39:46 +0000
commit0e7012ef8662b31e9da05cf39b2ec01301620810 (patch)
tree620b44fba087192391087649c893a2c8f9fa12b4
parentb4a2af26baa7e0eb28dd0fd88147f2c87604696e (diff)
downloadgo-0e7012ef8662b31e9da05cf39b2ec01301620810.tar.gz
go-0e7012ef8662b31e9da05cf39b2ec01301620810.zip
[release-branch.go1.15] syscall: fix TestGroupCleanupUserNamespace test failure on Fedora
For #46752 Fixes #46768 Change-Id: I2eaa9d15fac4e859e18191fcf1372e5be94899df GitHub-Last-Rev: f533c37ff9d259e307b200a01e3606bfaff10464 GitHub-Pull-Request: golang/go#46753 Reviewed-on: https://go-review.googlesource.com/c/go/+/328069 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org>
-rw-r--r--src/syscall/exec_linux_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go
index b79dee7525..df4ed62630 100644
--- a/src/syscall/exec_linux_test.go
+++ b/src/syscall/exec_linux_test.go
@@ -318,6 +318,7 @@ func TestGroupCleanupUserNamespace(t *testing.T) {
"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
+ "uid=0(root) gid=0(root) groups=0(root),65534(nobody) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023", // Fedora with SElinux context, see https://golang.org/issue/46752
}
for _, e := range expected {
if strOut == e {