> 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.
So, is this mapping of ownership of all files to root in hostfs a bug or a feature? Is there any other information that I should supply? --J. ------------------------------------------------------- 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