Part of bzrlib.transport.chroot View In Hierarchy
Known subclasses: bzrlib.tests.test_server.TestingChrootServer
The server's get_url returns the url for a chroot transport mapped to the backing transport. The url is of the form chroot-xxx:/// so parent directories of the backing transport are not visible. The chroot url will not allow '..' sequences to result in requests to the chroot affecting directories outside the backing transport.
PathFilteringServer does all the path sanitation needed to enforce a chroot, so this is a simple subclass of PathFilteringServer that ignores filter_func.
Method | __init__ | Constructor. |
Method | start_server | Setup the server to service requests. |
Method | _factory | Undocumented |
Inherited from PathFilteringServer:
Method | get_url | Undocumented |
Method | stop_server | Remove the server and cleanup any resources it owns. |
Parameters | backing_transport | a transport |
filter_func | a callable that takes paths, and translates them into paths for use with the backing transport. |