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
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.
|
|