On Fri, 15 Feb 2008, Stef Bon wrote:
> chris barry wrote:
>> On Sun, 2008-02-10 at 15:18 +0100, Stef Bon wrote:
>>
>>> Chris Stromsoe wrote:
>>>
>>>> I have a set of directories that are created and removed 
>>>> programmatically, and are hashed three levels deep 
>>>> (/top/hash/hash/name).  The depth is constant, the hashes and names 
>>>> are not.  There are around 35k at any time. I would like to bind 
>>>> mount a common directory into each top-level 
>>>> (/top/hash/hash/name/data) on demand.
>>>>
>>>> Can I use autofs to do that without having to explicitly list all of 
>>>> the directory paths in auto.master?
>>>>
>>>>
>>> Why not use symlinks to this shared common directory, and mount that 
>>> one?
>>>
>>> Stef Bon
>>>
>>
>> His goal is to create a chroot'd environment, and the symlink cannot 
>> function there.
>
> Good to mention. I did not understand it's about a chrooted environment. 
> The earlier emails do not say anything at all about that.

Sorry if I wasn't clear in the original message.  I was trying to simplify 
what I wanted as much as possible, but I guess I oversimplified.

My eventual solution was to use multi-mount to bind mount a shared 
directory with libraries and other common data to a "simple" generated 
path as a container, and then bind mount the hashed directory inside of 
that volume.  I'm using the container volume as a chroot environment to 
run untrusted code (php) on a web server, and wanted to minimize exposure 
to the rest of the machine as much as possible.



-Chris

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to