/usr/lib/python2.6/site-packages/clcommon
NameSizeModeActions
cpapi/-0755rm
clcagefs.py63090644editdlrm
clcagefs.pyc77840644editdlrm
clcagefs.pyo77840644editdlrm
clconfpars.py17180644editdlrm
clconfpars.pyc25630644editdlrm
clconfpars.pyo25630644editdlrm
cldetect.py30040644editdlrm
cldetect.pyc30600644editdlrm
cldetect.pyo30600644editdlrm
clemail.py19030644editdlrm
clemail.pyc21180644editdlrm
clemail.pyo21180644editdlrm
clfunc.py25600644editdlrm
clfunc.pyc34450644editdlrm
clfunc.pyo34450644editdlrm
clhook.py36340644editdlrm
clhook.pyc38560644editdlrm
clhook.pyo38560644editdlrm
cllog.py11410644editdlrm
cllog.pyc18730644editdlrm
cllog.pyo18730644editdlrm
cloutput.py4470644editdlrm
cloutput.pyc6970644editdlrm
cloutput.pyo6970644editdlrm
clpwd.py36120644editdlrm
clpwd.pyc48110644editdlrm
clpwd.pyo48110644editdlrm
clsec.py4500644editdlrm
clsec.pyc12370644editdlrm
clsec.pyo12370644editdlrm
utils.py14800644editdlrm
utils.pyc21510644editdlrm
utils.pyo21510644editdlrm
__init__.py1960644editdlrm
__init__.pyc4910644editdlrm
__init__.pyo4910644editdlrm
Edit: /usr/lib/python2.6/site-packages/clcommon/clcagefs.pyo (7784B)
Ñò \=0Yc@s„ddkZddkZdZdZdefd„ƒYZdefd„ƒYZd„Zd ddd „Z d ddd d „Z dS( iÿÿÿÿNs/etc/cagefs/cagefs.mps/usr/sbin/cagefsctltCagefsMpConflictcBseZd„Zd„ZRS(cCsd|t|f|_dS(NsUConflict in adding '%s' to %s because of pre-existing alternative specification: '%s'(tCAGEFS_MP_FILENAMEt_msg(tselftnew_itemt existing_item((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt__init__ scCs|iS(N(R(R((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt__str__s(t__name__t __module__RR(((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR s t CagefsMpItemcBs¶eZdZdZdZd„Zd„Zd„Zd„Ze eƒZd„Z d„Z d „Z d „Z e e ƒZ d „Ze eƒZd „Ze eƒZd „Zd„ZRS(s@!%tt!cCsK|d djo d|_n*|iƒdjo d|_n ||_dS(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 ctorit#R N(tNonet _path_spectstrip(Rtarg((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyRs   cCs>|iƒdjo'|dj od|i|f|_n|S(s%Specify mode as in fluent constructort@s%s,%03oN(tprefixRR(Rtmode((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR%s cCs|iS(N(R(R((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR-scCs0|djodS|ddjo |dS|S(NR t/iÿÿÿÿ((tpath((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt _add_slash/s   cCseti|ƒ}|iƒp |iƒotSti|iƒƒ}ti|iƒƒ}|i|ƒS(N(R t_adopttis_dummytFalseRRt startswith(Rtanothertadoptedt this_pathttest_preexist_in_path((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt pre_exist_in7s cCsŠti|ƒ}|iƒp |iƒotS|iƒ|iƒjotShtigti6}g}|iƒ|i|iƒ|ƒjS(N( R RRRRtTruet_PREFIX_MOUNT_ROt_PREFIX_MOUNT_RWtget(RtexistingRtprefix_compatibility_mapt null_options((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pytis_compatible_by_prefix_withCscCs |idjS(N(RR(R((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyRSscCs#t|tƒo|St|ƒSdS(N(t isinstanceR (tx((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyRUscCs|idƒdS(sjCut off mode from path spec like @/var/run/screen,777 Only one comma per path spec is allowed ;-)t,i(tsplit(t path_spec((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt _cut_off_mode\scCs|itiƒS(N(tlstripR t _PREFIX_LIST(R-((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt_cut_off_prefixdscCstiti|iƒƒS(N(R R1R.R(R((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyRgscCs*|i|iƒjo |idSdSdS(NiR (RR(R((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyRjs (RR R0R#R"RRRRt staticmethodR R(RRR.R1RR(((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyR s&             cCs#tiitƒotiitƒS(N(tosRtexistsRtCAGEFSCTL_TOOL(((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pytis_cagefs_presentpsiícCsztii|ƒpti|ƒn|dj oti||ƒn|dj o$|dj oti|||ƒndS(N(R3RtisdirtmkdirRtchmodtchown(RRtowner_idtgroup_id((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt_mk_mount_dir_setup_permts  R c st||||ƒtitdgƒttdƒ}zÔt||ƒi|ƒ‰d„|Dƒ}t‡fd†|ƒ}|p]|i ddƒ|i ddƒ}|d I|IJ|ˆIJ|i ƒtitd gƒn,ˆi |d ƒpt ˆ|d ƒ‚nWd |i ƒXd S( smAdd mount point to /etc/cagefs/cagefs.mp :param path: Directory path to be added in cagefs.mp and mounted from within setup_mount_dir_cagefs(). If this directory does not exist, then it is created. :param added_by: package or component, mount dir relates to, or whatever will stay in cagefs.mp with "# added by..." comment :param mode: If is not None: Regardless of whether directory exists or not prior this call, it's permissions will be set to mode. :param owner_id: If group_id is also provided along: Regardless of whether directory exists or not prior this call, it's owner id will be set to. :param group_id: If owner_id is also provided along: Regardless of whether directory exists or not prior this call, it's group id will be set to. :param prefix: Mount point prefix. Default is mount as RW. Pass '!' to add read-only mount point. Refer CageFS section at http://docs.cloudlinux.com/ for more options. :returns: None Propagates native EnvironmentError if no CageFS installed or something else goes wrong. Raises CagefsMpConflict if path is already specified in cagefs.mp, but in a way which is opposite to mount_as_readonly param. s --check-mpsr+cssx|]}|iƒVqWdS(N(trstrip(t.0t file_line((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pys ¬s cs ˆi|ƒS((R (R*(R(s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyt­siis t s# next line is added bys --remount-alliÿÿÿÿN(R=t subprocesstcallR5topenRR RtfiltertseektreplacetcloseR(R( Rtadded_byRR;R<Rt cagefs_mpt trim_nl_itertpre_exist_option((Rs5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pytsetup_mount_dir_cagefss""  ( R3RCRR5t ExceptionRtobjectR R6RR=RN(((s5/usr/lib/python2.6/site-packages/clcommon/clcagefs.pyts   ^