LWN.net Logo

Shared subtrees

Shared subtrees

Posted Nov 12, 2005 9:59 UTC (Sat) by lacostej (guest, #2760)
Parent article: Shared subtrees

How do shared trees and chroot relate?
Is it possible to implement some kind of chroot using this?


(Log in to post comments)

Shared subtrees

Posted Nov 15, 2005 2:06 UTC (Tue) by proski (subscriber, #104) [Link]

My understanding is that chroot creates a new namespace whereas the shared subtrees patch configures relationships between the namespaces. The answer to your second question is probably negative. It would be like implementing mkdir using chmod.

Shared subtrees

Posted Dec 1, 2005 11:34 UTC (Thu) by linuxram (subscriber, #22157) [Link]

shared subtrees allows you to create identical mount trees at different locations. It does more than that, but in general it makes sure that the
subtrees remain identical even after a series of mount and unmounts, in any of the subtrees.

Chroot is a entirely different thing. It helps set a process up in a jail
Once in a jail the process wont be able to access anything outside the directory tree. Neither do any of its children.

But the combination of shared subtree and chroot togather have lot of applications. One example is mentioned in the article, where we can have a identical subtree for each user(thanks to shared subtree semantics). And each user can get jailed in its corresponding subtree (thanks to chroot).

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.