public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ned Ludd <solar@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] emerge --root : users not created
Date: Mon, 21 Dec 2009 13:29:23 -0800	[thread overview]
Message-ID: <1261430963.4949.24.camel@hangover> (raw)
In-Reply-To: <1261430712.26386.6.camel@gentoo-dev>

On Mon, 2009-12-21 at 23:25 +0200, Ahmed Ammar wrote:
> On Tue, 2009-12-15 at 18:37 +0100, Peter Stuge wrote
> > useradd is a C program and my idea is to make it use the chroot()
> > system call. This system call changes the root directory for the
> > calling process. The chroot utility uses this system call, and then
> > executes a shell or other program inside the new root. The utility
> > will of course not work cross platform.
> > 
> > As long as the useradd C program does not rely on other executables
> > at runtime, which I severly doubt considering the nature of the
> > program, calling chroot() early in useradd would work regardless of
> > what binaries, if any, are inside the new root dir. useradd only
> > touches the user database text files.
> 
> Sounds like a simple enough idea. Patches welcome? Might be worth
> looking at how Gentoo Prefix does it first though.


FYI. This is GLEP-0027 and it's not handled anywhere properly yet afaik.

http://www.gentoo.org/proj/en/glep/glep-0027.html


-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux




  reply	other threads:[~2009-12-21 21:29 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 16:17 [gentoo-embedded] emerge --root : users not created Shinkan
2009-12-14 17:14 ` Ed W
2009-12-14 17:47   ` Sven Rebhan
2009-12-14 18:06     ` Peter Stuge
2009-12-15  7:31       ` Sven Rebhan
2009-12-15  8:53       ` Daniel Glaser
2009-12-15 10:33         ` Peter Stuge
2009-12-15 13:31           ` Ahmed Ammar
2009-12-15 14:00             ` Shinkan
2009-12-15 17:37             ` Peter Stuge
2009-12-15 22:24               ` Ahmed Ammar
2009-12-21 21:25               ` Ahmed Ammar
2009-12-21 21:29                 ` Ned Ludd [this message]
2009-12-22 11:38                   ` Peter Stuge
  -- strict thread matches above, loose matches on Subject: below --
2010-02-16 15:04 P. Levine
2010-02-16 15:20 P. Levine
2010-02-16 15:42 P. Levine
2010-02-16 15:56 P. Levine
2010-02-16 16:14 P. Levine
2010-02-22 14:41 P. Levine
2010-02-22 15:19 ` Peter Stuge
2010-02-22 18:44   ` P. Levine
2010-02-23 16:58 ` Ned Ludd
2010-02-24  2:01   ` P. Levine
2010-03-06  0:52 ` P. Levine
2010-03-08 11:05   ` Ed W

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=1261430963.4949.24.camel@hangover \
    --to=solar@gentoo.org \
    --cc=gentoo-embedded@lists.gentoo.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