-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ sk d Z d d l m Z d d l m Z m Z d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z
d S(
sP Implementation of Transport that prevents access to locations above a set
root.
i ( t absolute_import( t
pathfiltert register_transportt ChrootServerc B@ s) e Z d Z d „ Z d „ Z d „ Z RS( s( User space 'chroot' facility.
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.
c C@ s t j j | | d ƒ d S( N( R t PathFilteringServert __init__t None( t selft backing_transport( ( s; /usr/lib/python2.7/dist-packages/bzrlib/transport/chroot.pyR + s c C@ s
t | | ƒ S( N( t ChrootTransport( R t url( ( s; /usr/lib/python2.7/dist-packages/bzrlib/transport/chroot.pyt _factory. s c C@ s* d t | ƒ | _ t | j | j ƒ d S( Ns
chroot-%d:///( t idt schemeR R ( R ( ( s; /usr/lib/python2.7/dist-packages/bzrlib/transport/chroot.pyt start_server1 s ( t __name__t
__module__t __doc__R R R ( ( ( s; /usr/lib/python2.7/dist-packages/bzrlib/transport/chroot.pyR s R c B@ s e Z d Z d „ Z RS( sA A ChrootTransport.
Please see ChrootServer for details.
c C@ s
| j | ƒ S( N( t _relpath_from_server_root( R t relpath( ( s; /usr/lib/python2.7/dist-packages/bzrlib/transport/chroot.pyt _filter<