/usr/lib/python2.6/site-packages/clcommon
Edit: /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyo (7784B)
Ñò
\=0Yc @ s„ d d k Z d d k Z d Z d Z d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d d d d
„ Z
d d d d d „ Z d S(
iÿÿÿÿNs /etc/cagefs/cagefs.mps /usr/sbin/cagefsctlt CagefsMpConflictc B s e Z d „ Z d „ Z RS( c C s d | t | f | _ d S( NsU Conflict in adding '%s' to %s because of pre-existing alternative specification: '%s'( t CAGEFS_MP_FILENAMEt _msg( t selft new_itemt
existing_item( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt __init__
s c C s | i S( N( R ( R ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt __str__ s ( t __name__t
__module__R R ( ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR s t CagefsMpItemc B s¶ e Z d Z d Z d Z d „ Z d „ Z d „ Z d „ Z e e ƒ Z d „ Z
d „ Z d „ Z d
„ Z
e e
ƒ Z
d „ Z e e ƒ Z d „ Z e e ƒ Z d
„ Z d „ Z RS( s @!%t t !c C sK | d d j o
d | _ n* | i ƒ d j o
d | _ n
| | _ d S( s¾ Constructor
:param arg: Is either path to add to cagefs.mp or a raw line is read from cagefs.mp
:param prefix: The same as adding prefix '!' to arg before passing it to ctori t #R N( t Nonet
_path_spect strip( R t arg( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR s
c C s> | i ƒ d j o' | d j o d | i | f | _ n | S( s% Specify mode as in fluent constructort @s %s,%03oN( t prefixR R ( R t mode( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR % s c C s | i S( N( R ( R ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR - s c C s0 | d j o d S| d d j o | d S| S( NR t /iÿÿÿÿ( ( t path( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt
_add_slash/ s
c C se t i | ƒ } | i ƒ p
| i ƒ o t St i | i ƒ ƒ } t i | i ƒ ƒ } | i | ƒ S( N( R
t _adoptt is_dummyt FalseR R t
startswith( R t anothert adoptedt this_patht test_preexist_in_path( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt pre_exist_in7 s c C sŠ t i | ƒ } | i ƒ p
| i ƒ o t S| i ƒ | i ƒ j o t Sh t i g t i 6} g } | i ƒ | i | i ƒ | ƒ j S( N( R
R R R R t Truet _PREFIX_MOUNT_ROt _PREFIX_MOUNT_RWt get( R t existingR t prefix_compatibility_mapt null_options( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt is_compatible_by_prefix_withC s c C s
| i d j S( N( R R ( R ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR S s c C s# t | t ƒ o | St | ƒ Sd S( N( t
isinstanceR
( t x( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR U s c C s | i d ƒ d S( sj Cut off mode from path spec like @/var/run/screen,777
Only one comma per path spec is allowed ;-)t ,i ( t split( t path_spec( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt
_cut_off_mode\ s c C s | i t i ƒ S( N( t lstripR
t _PREFIX_LIST( R- ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt _cut_off_prefixd s c C s t i t i | i ƒ ƒ S( N( R
R1 R. R ( R ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR g s c C s* | i | i ƒ j o | i d Sd Sd S( Ni R ( R R ( R ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR j s ( R R R0 R# R" R R R R t staticmethodR R( R R R. R1 R R ( ( ( s5 /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR
s&