From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mail.openembedded.org (Postfix) with ESMTP id C747C65E75 for ; Mon, 9 Jun 2014 13:51:42 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id q59so640553wes.41 for ; Mon, 09 Jun 2014 06:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=jw9UrvmoE8ole/CJ0EPblL3/Wb8XalSAkD402spzEs4=; b=cFp6eMaHebrz+77Tv0MdqPmQzDACB0lUr2MqGZ8xqrh4WaK42e0eaBjquYuHFAge/O rohFt65eKhJ4PKKyg81pwJpzauEk5KqCTH/hsaI4iRtmgrF5FglNFQ2efcwfv/IREsiC z/UXvfTW/uohMYgeqAt/JLmBSZ5JkGndacLRyhlAeWY7Xj9SUE3NJ10QJOb4x4FYRO9T +VG3woOB9MAFGwEHw90ELiHmfICW2eXkr9UTn/Cp8UdkSOgzM5ZalSKU6OJKr3sm//Gy Rjv3kAM5gVVT1A5trudbjG0VOGpoSMsCylEzrhCyQ0n9pJZLr8Vq2gt94qE56vZYBqLF 2ZpA== X-Received: by 10.15.36.136 with SMTP id i8mr111116eev.74.1402321903435; Mon, 09 Jun 2014 06:51:43 -0700 (PDT) Received: from localhost (ip-89-176-104-3.net.upcbroadband.cz. [89.176.104.3]) by mx.google.com with ESMTPSA id f3sm45160894eep.40.2014.06.09.06.51.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jun 2014 06:51:42 -0700 (PDT) From: Martin Jansa X-Google-Original-From: Martin Jansa Date: Mon, 9 Jun 2014 15:52:02 +0200 To: Peter Kjellerstedt Message-ID: <20140609135202.GA2433@jama> References: MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "OE Core \(openembedded-core@lists.openembedded.org\)" Subject: Re: Using users/groups from another recipe than the one creating them X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 13:51:47 -0000 X-Groupsio-MsgNum: 53952 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 09, 2014 at 03:39:46PM +0200, Peter Kjellerstedt wrote: > > -----Original Message----- > > From: openembedded-core-bounces@lists.openembedded.org > > [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of > > Peter Kjellerstedt > > Sent: den 23 maj 2014 12:38 > > To: OE Core (openembedded-core@lists.openembedded.org) > > Subject: Re: [OE-core] Using users/groups from another recipe than the > > one creating them > >=20 > > > -----Original Message----- > > > From: openembedded-core-bounces@lists.openembedded.org > > > [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf > > > Of Peter Kjellerstedt > > > Sent: den 19 maj 2014 10:15 > > > To: OE Core (openembedded-core@lists.openembedded.org) > > > Subject: [OE-core] Using users/groups from another recipe than the > > > one creating them > > > > > > Which assumption is correct: "a recipe A that depends on another > > > recipe B can use users/groups that B creates" or "all recipes must > > > create the users/groups they require themselves"? > > > > > > The problem for us is that we have a lot of recipes that create > > > users and groups, and subsequently a number of other related recipes > > > that need to use those users and groups. > > > > > > If the first assumption is correct then the useradd.bbclass needs to > > > be corrected so that it adds a dependency from do_install to > > > base-passwd:do_populate_sysroot and > > > base-passwd:do_populate_sysroot_setscene, because if either of those > > > tasks execute they will overwrite /etc/passwd and /etc/group, > > > effectively removing any users/groups that were created earlier... > > > > > > On the other hand, if it is the second assumption that is correct, > > > then there should be QA tests in place to make sure all recipes > > > create the users/groups they use. > > > > > > //Peter > >=20 > > *ping* > >=20 > > Doesn't anyone know how users and groups are supposed to work? > >=20 > > //Peter >=20 > *ping again* >=20 > Well, this is somewhat discouraging. Three weeks and not a single=20 > response. Are we really the only ones that care about users and=20 > groups and how they are created? Doesn't anyone know which of my=20 > two assumptions above are correct? >=20 > Personally I would prefer that all recipes create the users and=20 > groups they require themselves as this keeps them more self=20 > contained. I have no idea how to write a QA test to verify this,=20 > but I assume it should be possible... My experience from Dylan release is that only users/groups created in base-passwd work reliably, with useradd.bbclass we were seeing random files getting random user/group owners (comparing buildhistory report files-in-image.txt from multiple builds which weren't using sstate). --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlOVvAIACgkQN1Ujt2V2gBztLwCfXmaCHGdFzaQD+RsZx0/gLb83 HTgAoKzK2OunmlG0Un0dB+f6A9wvnSbI =ySQk -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--