plugins/pkg/testutils
Giuseppe Scrivano 85083ea434
testutils: newNS() works in a rootless user namespace
When running in a user namespace created by an unprivileged user the
owner of /var/run will be reported as the unknown user (as defined in
/proc/sys/kernel/overflowuid) so any access to the directory will
fail.

If the XDG_RUNTIME_DIR environment variable is set, check whether the
current user is also the owner of /var/run.  If the owner is different
than the current user, use the $XDG_RUNTIME_DIR/netns directory.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-10-19 12:04:53 +02:00
..
echosvr build: some small improvements; bump to go1.10 2018-04-12 16:59:51 +02:00
bad_reader.go Add 'pkg/' from commit 'a11be4d7596203874b742b6597caf255204c56c3' 2017-05-19 19:43:02 +02:00
cmd.go Add check support for: bridge, ipvlan, macvlan, p2p, vlan and host-device main plugins 2019-04-03 13:08:07 -04:00
dns.go ptp: only override DNS conf if DNS settings provided 2019-09-18 21:09:22 +00:00
netns_linux.go testutils: newNS() works in a rootless user namespace 2019-10-19 12:04:53 +02:00
ping.go ptp: add ipv6 support 2017-06-30 12:06:57 +02:00