From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Regression bug: dbus messagebus user generation is wrong
Date: Thu, 22 Dec 2011 09:02:29 +0000 [thread overview]
Message-ID: <1324544549.24604.4.camel@ted> (raw)
In-Reply-To: <alpine.DEB.2.00.1112220939580.26143@entw48>
On Thu, 2011-12-22 at 09:49 +0100, Bernhard Guillon wrote:
> we switched the way we chown /usr/libexec/dbus-daemon-launch-helper
> with this commit:
>
> commit 46e6c3fa8034b12d178d605f3f5d7efe69671a13
> Author: Otavio Salvador <otavio@ossystems.com.br>
> Date: Fri Oct 21 02:49:51 2011 +0000
>
> dbus: use useradd class to allow use in read-only filesystems
>
> Move creation of required user/groups to useradd class thus allowing
> use with read-only filesystems and booting the initial boot.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>
>
> We changed the owner ship of the user on the device before this commit.
> Now we change the owner ship on build time which is wrong. If we change
> the owner ship on buildtime we cannot know the gid of the messagebus
> group. On my system it is e.g 117 but on my targtet it is 997. There is no
> standard mapping for gid to names so we need to switch back to change the
> group on the device.
>
> I can send a patch which reenables the postinstall owner ship change if
> you like.
We have code which is designed to deal with this. The do_install,
do_package* and do_rootfs tasks are run under pseudo which maintains a
separate passwd/group file of IDs which are used instead of the system#s
passwd/group files. When we write out the packages, the named owners of
the files should be correct. When we install the packages, rpm/opkg/dpkg
should be looking up the names and resolving them to the correct IDs for
the system in question. We also have code to ensure the correct users
are present on the system before the packages are extracted.
There have been some issues in this area recently but those issues
should be resolved now. I believe the issue is present in the
1.1/edison/2011-1 release but the upcomming point release should fix
those regressions there.
So which code are you seeing this issue from?
Cheers,
Richard
next prev parent reply other threads:[~2011-12-22 9:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 8:49 Regression bug: dbus messagebus user generation is wrong Bernhard Guillon
2011-12-22 9:02 ` Richard Purdie [this message]
2011-12-22 9:10 ` Martin Jansa
2011-12-22 10:06 ` Bernhard Guillon
2011-12-22 10:26 ` Koen Kooi
2011-12-22 12:04 ` Richard Purdie
2011-12-22 12:08 ` Richard Purdie
2011-12-22 13:17 ` Martin Jansa
2011-12-22 15:52 ` Mark Hatle
2011-12-22 16:10 ` Martin Jansa
2011-12-22 18:02 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1324544549.24604.4.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox