From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3826 Path: news.gmane.org!not-for-mail From: Rob Landley Newsgroups: gmane.linux.lib.musl.general Subject: Re: super_chroot - replacement for chroot for building dists Date: Mon, 05 Aug 2013 00:45:19 -0500 Message-ID: <1375681519.8422.10@driftwood> References: <20130801003741.GA20075@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375687764 32463 80.91.229.3 (5 Aug 2013 07:29:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 07:29:24 +0000 (UTC) Cc: musl@lists.openwall.com To: musl@lists.openwall.com Original-X-From: musl-return-3830-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 05 09:29:26 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V6FEK-00052l-Ed for gllmg-musl@plane.gmane.org; Mon, 05 Aug 2013 09:29:24 +0200 Original-Received: (qmail 28581 invoked by uid 550); 5 Aug 2013 07:29:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28572 invoked from network); 5 Aug 2013 07:29:21 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:subject:to:cc:references:in-reply-to:x-mailer:message-id :mime-version:content-type:content-disposition :content-transfer-encoding:x-gm-message-state; bh=YMaR8tmbN2/1/rVt1CR+E3VstRZ1KsfLjmjaBHjUzJ8=; b=AOpyx8kbq39novsaGf+MzvicpNBGHxyVOrQoohg/XptVoRKMdcjLY4PwUAAhcqTHIh A/O7I+vq9L7S6wsF/EagaPYxzWBdFnMPtMVl0k6hK1sqm2d3DwxQo8aMT8+nVD+Mpel0 NYcKK4oc5u/4wze2g4ZVU+wbZou9qhJDDDI7zgx7xTbKcbRdMUYSpDhGWk59TzZ7kBcp kTwsWNKOp+2xipa1F+Pffz7ILvidkh65imvKATbETuvBmLnoHNL7+e07Fc4CNZ7tpJCX AFFN6tT7JTBS/9S+SpFs+biNCtqqm2yg7PG9tOt8m9s0VG3rbAENEbirgXmRohHkzrBC wzeQ== X-Received: by 10.182.53.234 with SMTP id e10mr13136198obp.47.1375687749628; Mon, 05 Aug 2013 00:29:09 -0700 (PDT) In-Reply-To: <20130801003741.GA20075@brightrain.aerifal.cx> (from dalias@aerifal.cx on Wed Jul 31 19:37:41 2013) X-Mailer: Balsa 2.4.11 Content-Disposition: inline X-Gm-Message-State: ALoCoQk27rqNEoakmOlxdVkNKpwFRjq5ufVUsEgxRbVHKgzWhitfoKe11gL2oKTwQUsCYEGyBm07 Xref: news.gmane.org gmane.linux.lib.musl.general:3826 Archived-At: On 07/31/2013 07:37:41 PM, Rich Felker wrote: > Attached is a very simplified proof-of-concept for a tool that will > allow building musl-based dists without the need for root privileges. > It needs Linux 3.8 or newer (with user namespaces), but nothing else, > and should work whether compiled against musl or glibc. I'm hoping > this will be able to be adopted by some (most) of the musl-based dists > as an alternative to the current enter_chroot approach, so that it > becomes possible to build on systems where root access is not > available or where policy would prohibit use of root for building. Aboriginal doesn't use root. It cross compiles as a normal user, =20 packages as a normal user, and then launches qemu or kvm as a normal =20 user. (The previous iteration used user mode linux before qemu was =20 viable; this only supported x86 targets.) FYI, Rob=