1 |
On Tue, 2009-12-15 at 18:37 +0100, Peter Stuge wrote: |
2 |
> Ahmed Ammar wrote: |
3 |
> > > > > so maybe it makes sense to simply have useradd call chroot() |
4 |
> > > > > according to an option early on in main()? |
5 |
> > > > |
6 |
> > > > This will definitely not work on cross targets? |
7 |
> > > |
8 |
> > > Why not? useradd doesn't fork, it does all file IO on it's own, so I |
9 |
> > > think it could work. |
10 |
> > |
11 |
> > Well how exactly do you expect chroot to succeed when the host is |
12 |
> > x86 and the ${ROOT} is arm? |
13 |
> |
14 |
> It should work fine. Note chroot() system call, not the chroot |
15 |
> utility. |
16 |
|
17 |
Thanks for clearing that up, makes much more sense now. |
18 |
|
19 |
A. |