From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NKfot-0001gy-Oh for garchives@archives.gentoo.org; Tue, 15 Dec 2009 22:24:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 434A9E1572; Tue, 15 Dec 2009 22:24:13 +0000 (UTC) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by pigeon.gentoo.org (Postfix) with ESMTP id 0694AE155C for ; Tue, 15 Dec 2009 22:24:12 +0000 (UTC) Received: by ewy24 with SMTP id 24so400852ewy.26 for ; Tue, 15 Dec 2009 14:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:from:to :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=RiLeeaVr/obPfjFPuf2uZDUCgnr8TtnZNr2fgjy3EKs=; b=L/WiDbBPy9edD85AUIAKC9nouf3JwBA98h6U6STDmIkT7t3L0nlbc4qAqMtmDSb4qk Eezn4I/Ptb5S6lMIuS80pvPBdivGw5SEaOpKKynv44qbRLtvFS+4nji+04tsS0TvTdFc /DhEhPg0aLVtzDK/oFpJDe9xQw5LW9NL+wvIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:from:to:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=nPKJQhWJXcMjhFrKdCFQPFi+FlEZuys/Z+qsi45Y0TAlQezxfC0otrIEYyYoehRd6T ajF/aLOXb8B5Qd2cypTNaFvyLogX40OJq8UnxKAvcARd2w2sB9tcwJGKmhsPU8+WQEMa amiGzre2LNmiaXklSWHZNqhLiP0dfm+qIPLVs= Received: by 10.216.86.206 with SMTP id w56mr76574wee.1.1260915851832; Tue, 15 Dec 2009 14:24:11 -0800 (PST) Received: from ?192.168.1.66? ([41.237.78.190]) by mx.google.com with ESMTPS id i35sm1011299gve.11.2009.12.15.14.24.10 (version=SSLv3 cipher=RC4-MD5); Tue, 15 Dec 2009 14:24:11 -0800 (PST) Sender: Ahmed Ammar Subject: Re: [gentoo-embedded] emerge --root : users not created From: Ahmed Ammar To: gentoo-embedded@lists.gentoo.org In-Reply-To: <20091215173725.19644.qmail@stuge.se> References: <166af1cf0912140817j66fb0ba3q96f1e8285790bc8@mail.gmail.com> <4B267265.7080406@wildgooses.com> <3dc1583f0912140947q106e673fkcb541cc8929c0321@mail.gmail.com> <20091214180657.29028.qmail@stuge.se> <4B274E81.7060005@chaintronics.com> <20091215103359.12281.qmail@stuge.se> <1260883909.9491.2.camel@gentoo-dev> <20091215173725.19644.qmail@stuge.se> Content-Type: text/plain; charset="UTF-8" Date: Wed, 16 Dec 2009 00:24:09 +0200 Message-ID: <1260915849.9491.15.camel@gentoo-dev> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 67b5f25e-e16a-47d1-880d-e8eeefb30404 X-Archives-Hash: 8a02d6957ccb6ac4943b2bb1e1a5b3b4 On Tue, 2009-12-15 at 18:37 +0100, Peter Stuge wrote: > Ahmed Ammar wrote: > > > > > so maybe it makes sense to simply have useradd call chroot() > > > > > according to an option early on in main()? > > > > > > > > This will definitely not work on cross targets? > > > > > > Why not? useradd doesn't fork, it does all file IO on it's own, so I > > > think it could work. > > > > Well how exactly do you expect chroot to succeed when the host is > > x86 and the ${ROOT} is arm? > > It should work fine. Note chroot() system call, not the chroot > utility. Thanks for clearing that up, makes much more sense now. A.