uml hostfs: fix interaction between hostfs=path1 and -o path2 at mount time (was: Re: hostfs kernel parameter fail?)
Quoted 6 lines · Sylvain Beucler
On Sat, Mar 03, 2007 at 07:32:46PM +0100, Blaisorblade wrote:
Hi,I tested and it works.
Thanks,
You'll probably also see that -o .. allows bypassing the 'hostfs jail', and I've just implemented a fix to that. The question is whether this should be merged.
Indeed, the root user inside UML can bypass that anyway, if he modifies the hostfs module, compiles and loads it. So the host admin really needs to run UML in a chroot if he needs real security.
What do you all think?
Signature · 17 lines
Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: [uml-devel] [uml-user] [PATCH] uml hostfs: fix interaction between hostfs=path1 and -o path2 at mount time
Quoted 6 lines · Blaisorblade
Quoted 5 lines · Sylvain Beucler
On Sat, Mar 03, 2007 at 07:32:46PM +0100, Blaisorblade wrote:
Hi,I tested and it works.
Quoted 8 lines
Quoted 1 line
Thanks,
You'll probably also see that -o .. allows bypassing the 'hostfs jail', and I've just implemented a fix to that. The question is whether this should be merged.
Indeed, the root user inside UML can bypass that anyway, if he modifies the hostfs module, compiles and loads it.
If security is at stake then the host admin should use non-modular kernels to prevent such tampering.
Quoted 2 lines
So the host admin really needs to run
UML in a chroot if he needs real security.
chroot isn't totally foolproof (see chroot-again issue), but when chrooting + changing user (like compartment does), it should be pretty safe.
Antoine
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: [uml-devel] [uml-user] [PATCH] uml hostfs: fix interaction between hostfs=path1 and -o path2 at mount time
Quoted 13 lines · Antoine Martin
Quoted 12 lines · Blaisorblade
Quoted 6 lines · Sylvain Beucler
On Sat, Mar 03, 2007 at 07:32:46PM +0100, Blaisorblade wrote:
Hi,I tested and it works.
Thanks,
You'll probably also see that -o .. allows bypassing the 'hostfs jail', and I've just implemented a fix to that. The question is whether this should be merged.
Quoted 5 lines
Quoted 2 lines
Indeed, the root user inside UML can bypass that anyway, if he modifies the hostfs module, compiles and loads it.
If security is at stake then the host admin should use non-modular kernels to prevent such tampering.
I know /dev/kmem allows bypassing that, but I don't know of any kmem-insmod out there (and that would make the issue quite practical).
Signature · 16 lines
Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel