Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Ahmed Ammar <b33fc0d3@g.o>
Subject: Re: emerge --root : users not created
Date: Mon, 21 Dec 2009 23:25:12 +0200
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.

A.




Replies:
Re: emerge --root : users not created
-- Ned Ludd
References:
emerge --root : users not created
-- Shinkan
Re: emerge --root : users not created
-- Ed W
Re: emerge --root : users not created
-- Sven Rebhan
Re: emerge --root : users not created
-- Peter Stuge
Re: emerge --root : users not created
-- Daniel Glaser
Re: emerge --root : users not created
-- Peter Stuge
Re: emerge --root : users not created
-- Ahmed Ammar
Re: emerge --root : users not created
-- Peter Stuge
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: emerge --root : users not created
Next by thread:
Re: emerge --root : users not created
Previous by date:
Re: broken crossdev
Next by date:
Re: emerge --root : users not created


Updated Apr 23, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.