From nobody Wed Sep 27 11:00:13 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RwYYD0YVtz4vJ6K for ; Wed, 27 Sep 2023 11:00:16 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RwYYC6TzLz3dcZ; Wed, 27 Sep 2023 11:00:15 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695812416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LkN8bGI8/liMjdaHL/LIg2OATa1cjK+BQUm/OOI3FrI=; b=WksidPaY7FhJ83uMeSHZRsBWb5h3ivjrripUPYAbf3kNHjwl1HSIzrmnzklEQlPPYTnybV wVTHzydibxYXQwS8YjQk4KRAoPyn8LYLMndoY5I1cPm2hvZpPDP9CUy2ykx7dGUgpIXC+/ w5mu0BAcboCM+Z3kDMlTFomKZh3mQi9yG35bbGWlAUEUHIBdb2SwEdzPGD22SifubgbwF1 YEMU8ripXCmk2YQ23joDq4IeyOj/sBre3qLzzEAHPa6t592uYBbzHirBEMialrCyKDpO9G JsQ/JoYupS07Xv0QEzxMVh6Gv6z1YoU3okjcTjmk0slkEo9Lb6E03anF0OtK3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695812416; a=rsa-sha256; cv=none; b=Tdd8tSgpDxSH9FQI54riA4HXmiki8CiBX+2bLYdKOjUR0ynB1neKH1E+sY+Q4mLS94qpoi yLo8FBi3yloj75vRe+irddohNOtEOpzggTMnHWjwp3Q1wjtfmC0JKkXsWr9izvhZk99kOo goOfEARKYM0Jxyq2G90d2e94iFAZm1BtlmXvnYo5E6I53TDfwzWdU5pFNA9+Z+JhNLXak6 0aO8at05UZZQCXlq+eS6OmtH/6x8J1ZfMSyr/uDu7vnICDBBVEQkgo/R4AGzIbHRIgzQqT ALf37KlMv0DaFGmUXAfvLA4FJWY3RJDx4ywEshcVnBo2EEx24L+S2X15MCwJ5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695812416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LkN8bGI8/liMjdaHL/LIg2OATa1cjK+BQUm/OOI3FrI=; b=UsfNletcImGDFlIfy01ofTY6Ae3gSpbox2Ljn+NnbGkKbNLyVCwCRC35FW8R9/f+eiHNIi o5+Mcrq3q8Yb0vbMnXeohN4h53XOvOH1SURSBvUMEKxV2r1CPds1Uw3nPeF0AieXOrdT4b xsU0/RZ5zRSzZouk+xjbIsEHpt8AzEqagwx7qqZc9sjYeCOGM9CIMyvKbJv1covhikaN1n Pyg43sixmqJaEc0XU3qldTRNoRzBQjfTz1DhLa6BDLftVJ47SA/gRWKyCnEldDoEoS6Cwe EaExbcYDamM+NeDqgTdBnTi0sc/zL8R8qzEFl2bhEAfULAMWuz6Qqs27A3ilhA== Received: from [IPV6:2a01:e11:2002:4280::13:1] (unknown [IPv6:2a01:e11:2002:4280::13:1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RwYYB6lWCz16QT; Wed, 27 Sep 2023 11:00:14 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Message-ID: <345d28f3-9391-4330-bd5c-b0ac72a0866f@FreeBSD.org> Date: Wed, 27 Sep 2023 13:00:13 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: sccache(-overlay) to speed up rust builds in poudriere Content-Language: en-US From: Guido Falsi To: Alexander Leidinger , Charlie Li Cc: Kurt Jaeger , "freebsd-ports@FreeBSD.org" , pizzamig@freebsd.org, rust@freebsd.org References: <2e1786f2-1aae-7199-5a3e-5d8c9cdbedbf@FreeBSD.org> <3fc3bf626fa452be730bcc96d2c10508@Leidinger.net> <3997509d72dcdbd9075274bee41cf255@Leidinger.net> <99e008c3-4047-4fb6-92df-d0a16a637efb@FreeBSD.org> In-Reply-To: <99e008c3-4047-4fb6-92df-d0a16a637efb@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 27/09/23 12:57, Guido Falsi wrote: > On 27/09/23 12:54, Alexander Leidinger wrote: >> Am 2023-09-27 10:56, schrieb Charlie Li: >> >>> In poudriere, apart from the fetch phase, network access is not >>> allowed by default so spawning a server that listens on an IP that >>> does not necessarily exist that clients, individual compiler >>> invocations, talk to isn't tenable. At the very least, one would need >>> to architect and implement Unix domain socket support there, which >>> they are happy to consider. >> >> How is poudriere preventing network access outside the fetch phase? > > two (undocumented) guesses: > > - removing interfaces (including lo0) > - no routing > > The only way to know for sure is reading the source code. > https://github.com/freebsd/poudriere/blob/97404baad0c41f1007f971c4a19c89b7c594d89f/src/share/poudriere/common.sh#L691C59-L692C32 This looks like the relevant line of code, one has obviously to check all the involved variables definitions. This is a good starting point for this kind of research though. -- Guido Falsi