Re: Module idea/thoughts wanted - virtual fs/autofs for chrooted apps

From: Nathan Neulinger (nneul@umr.edu)
Date: Mon Apr 03 2000 - 07:47:46 EST


> > I did a search for 'viro' and didn't find anything applicable on the
> > list. Can you be more specific?
>
> Yes, I can.
> This patch (seems to be included in 2.3.99pre4-3), allows you the following:
> mount -t ext2 /dev/sda2 /usr
> mount -t ext2 /dev/sda2 /chroot/usr
> and/or:
> mount -t bind /var/spool/mail /chroot/var/spool/mail

Ah, thanks. That looks interesting, but not completely useful in this
case - although the mail queue one might be... I wouldn't want to mount
all of /usr in the chrooted area as that would just be dangerous -
including any setuid executables would be a bad idea...

> > I'm not familiar with namespaces, but I'll look into them. What exactly
> > do they do?
>
> They allow you making the directory structure attribute that may be shared or not shared
> between processes. Al will implement this usinf yet another clone() flag.

Sounds like that's what would be needed for the virtual directory part.
So I take it that under normal circumstances, once a directory entry is
in the cache, without this flag it would be shared between all processes
accessing the cache?

-- Nathan

------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
CIS - Systems Programming Fax: (573) 341-4216

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:09 EST