Gentoo Archives: gentoo-project

From: "Michał Górny" <mgorny@g.o>
To: gentoo-project@l.g.o
Subject: Re: [gentoo-project] issues with network tests (within sandbox ?) at thte tinderbox
Date: Wed, 05 Jul 2017 07:59:43
Message-Id: 1499241574.1748.1.camel@gentoo.org
In Reply to: [gentoo-project] issues with network tests (within sandbox ?) at thte tinderbox by "Toralf Förster"
1 On wto, 2017-07-04 at 22:47 +0200, Toralf Förster wrote:
2 > WRT https://bugs.gentoo.org/show_bug.cgi?id=623544#c8 I do wonder if I
3 > have an overlooked tinderbox problem with FEATURES=tests or whether
4 > there's a general (sandbox ?) network testing problem ?
5 >
6
7 Tests (or any specific ebuild activity) requiring or even optionally
8 using any external network interaction are forbidden. They should be
9 disarmed, removed or disabled by the ebuild.
10
11 However, connecting to localhost is fine as long as it doesn't connect
12 to any 'external' daemons, and the ebuild starts everything that's
13 needed.
14
15 To ensure both points, there's FEATURES=network-sandbox (we should
16 probably enable it by default soon). It creates a network namespace for
17 the process where it gets its private lo interface and nothing more.
18
19 For this particular case, it's some kind of gray area. It supposedly
20 needs only localhost but needs it to resolve using hostname. I guess
21 adding entry for the host to /etc/hosts would be enough to make it
22 happy.
23
24 --
25 Best regards,
26 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature