On Monday 04 April 2005 11:24, Jan Rychter wrote:
> Blaisorblade wrote:
> > On Sunday 03 April 2005 13:48, Jan Rychter wrote:
> > > I used UML successfully in the past and recently I've tried to revive
> > > my UML installation. Unfortunately, I've run into a range of problems
> > > (updates required for newer host kernels, non-working hostfs, etc).
> > >
> > > I am now at a stage where I have linux-2.4.27 patched with
> > > uml-2.4.27-bs2-pre7.patch and a host 2.6.10 patched with skas3-v8-rc5.
> > >
> > > The issue I have is that hostfs doesn't work they way I want it to.
> > > What I get is all hostfs files owned by root:root.
> > >
> > > The semantics I'd like to see are:
> > >
> > >  -- uid:gid mapping of 1:1 between the host and uml,
> > >
> > >  -- normal permission checks done on the host for requests done by uml.
> >
> > This is the normal situation, but there are some rare exception (i.e.
> > when you boot from hostfs as rootfs, instead of using one UBD). So,
> > please describe exactly your setup (UML command line and boot messages,
> > mount command, and so on).
> >
> > Are you using hostfs as your rootfs? From what you say it seems not, but
> > the behaviour you see has been explicitly coded for that case.
>
> No, I am not using it as my rootfs. The semantics that I'd like to
> achieve are similar to an NFS-mounted /home filesystem, except that only
> the user running the UML should have access to his files.
>
> I mount the hostfs via the fstab entry:
>
>   none /home hostfs /home,rw 0 0
>
> ... which gets me all files owned by root. What I'd like to have is
> either a full /home or a /home/jwr (my $HOME). As user 501 (my uid)
> inside UML I should be able to access files on the host beloging to uid
> 501, assuming that UML runs under uid 501.
>
> And here are the boot messages from the UML guest:

Ok, I've verified that 2.4.28-bs2-pre11 has not any hostfs problems, for me. 
I've done it against the 2.4.28 kernel; this should make no difference apart 
the fact that 2.4.27 does not compile with GCC 3.4 while 2.4.28 does. Since I 
use GCC 3.4, I updated the patch to that release, however there is no real 
difference in the patch (just some innocuos offsets).

I'll upload the -pre11 patchset as soon as I have a large upload pipe.

However, I'd suggest trying to do a clean build... actually, I experienced 
some hostfs problem, I then unapplied and reapplied the same patches, did a 
clean compilation and it worked. Very strange. No, I don't know, but I assume 
I had stale object files.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to