]> Cypherpunks repositories - gostls13.git/commit
syscall: fix skip condition in skipUnprivilegedUserClone
authorMeng Zhuo <mengzhuo1203@gmail.com>
Thu, 6 Jun 2019 11:17:01 +0000 (19:17 +0800)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 6 Jun 2019 11:40:17 +0000 (11:40 +0000)
commit5ec14065dcc4c066ca7e434be7239c942f0c2e5b
tree5518d7d5a15c3ee2e60a0676f3a71ad2d22937f6
parent037ac2bd84480e0a06c4d1e7a2c1f133109466a5
syscall: fix skip condition in skipUnprivilegedUserClone

This is a follow up CL of CL 180877:
It will skip test create user namespaces under 3 conditions:

1. sysctl file is missing
2. file reads nothing
3. user don't have permission to create namespaces

Change-Id: I25f00a6b67213bf98d654972388637789978e1fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/180937
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/syscall/exec_linux_test.go