]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix TestGroupCleanupUserNamespace test failure on Fedora
authorRahul Bajaj <rahulrb0509@gmail.com>
Tue, 15 Jun 2021 13:23:10 +0000 (13:23 +0000)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 16 Jun 2021 04:45:46 +0000 (04:45 +0000)
Fixes #46752

Change-Id: I2eaa9d15fac4e859e18191fcf1372e5be94899df
GitHub-Last-Rev: 8a2672d8dc6713ec6cbd207d870e893062c8fe5b
GitHub-Pull-Request: golang/go#46753
Reviewed-on: https://go-review.googlesource.com/c/go/+/328109
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/syscall/exec_linux_test.go

index 7d89eaae63ae913be062acf6d8f96a59dfd83ca6..85b59ad00d94650368e0305ba62b507c0b8824b0 100644 (file)
@@ -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 {