]> Cypherpunks repositories - gostls13.git/commit
syscall: skip non-root user namespace test if kernel forbids
authorIan Lance Taylor <iant@golang.org>
Fri, 19 Jun 2015 20:48:06 +0000 (13:48 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 20 Jun 2015 00:52:38 +0000 (00:52 +0000)
commit79d4d6eca47acc3b2dd0ec598b6a55c0bb0b1b31
tree106e1af7be534001b9ec59f2513654f0f58f493a
parent2f2908bec31a5fa8b5031b362006baef020b9819
syscall: skip non-root user namespace test if kernel forbids

Some Linux kernels apparently have a sysctl that prohibits
nonprivileged processes from creating user namespaces.  If we see a
failure for that reason, skip the test.

Fixes #11261.

Change-Id: I82dfcaf475eea4eaa387941373ce7165df4848ad
Reviewed-on: https://go-review.googlesource.com/11269
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
src/syscall/exec_linux_test.go