Re: [gentoo-portage-dev] [PATCH] process: Unshare UTS namespace, and set hostname to 'localhost'

2020-03-27 Thread Zac Medico
On 3/27/20 9:05 AM, Michał Górny wrote: > Use UTS namespace to override hostname when network-sandbox is enabled. > Set it to 'localhost' as that has a better chance of being present > in /etc/hosts. This fixes tests in some packages that try to connect > to localhost via hostname obtained using

[gentoo-portage-dev] [PATCH] process: Unshare UTS namespace, and set hostname to 'localhost'

2020-03-27 Thread Michał Górny
Use UTS namespace to override hostname when network-sandbox is enabled. Set it to 'localhost' as that has a better chance of being present in /etc/hosts. This fixes tests in some packages that try to connect to localhost via hostname obtained using gethostname(), e.g. docker-py, and suffer