All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Hostfs permission checks are all wonky.
@ 2005-03-20 19:17 Rob Landley
  2005-03-22 19:19 ` Blaisorblade
  0 siblings, 1 reply; 10+ messages in thread
From: Rob Landley @ 2005-03-20 19:17 UTC (permalink / raw)
  To: user-mode-linux-devel

If I open a device like /dev/loop0 or /dev/console from a hostfs mount, I'll 
get the UML device, not the host device, right?

So why are the permissions checks on hostfs devices done relative to the 
_host_ user?  If /dev/console doesn't belong to the current user, the system 
can't even open the initial console, despite the fact the output does NOT go 
to TTY1 if I'm running it an xterm.

Similarly, if /dev/loop0 is chmod 600 and I run UML as a normal user and try 
to do a mount -o loop, it says it can't find a loop device.  Yet if I run UML 
as root, it doesn't allocate one of the parent's loop devices, UML does it 
internally...

I'm told there's a major rewrite of hostfs underway.  Is it worth me trying to 
patch the existing hostfs code, or should I go try to track down the new 
stuff and try it out?

Rob


-------------------------------------------------------
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-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-04-29  0:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-20 19:17 [uml-devel] Hostfs permission checks are all wonky Rob Landley
2005-03-22 19:19 ` Blaisorblade
2005-03-23  6:09   ` Rob Landley
2005-03-24 10:53     ` Blaisorblade
2005-03-28 17:23       ` Rob Landley
2005-03-28 19:48       ` Rob Landley
2005-04-29 20:53         ` Blaisorblade
2005-04-28 23:45           ` Rob Landley
2005-03-23  8:13   ` Rob Landley
2005-03-24  2:02     ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.