??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
 )gc@sddlZddlZddlZddlZddlZddlmZddlmZddlmZddlm Z ddlm Z ddlm Z dd lm Z dd lm Z dd lmZdd lmZdd lmZddlmZddlmZmZmZer=ddlmZmZmZndZd=ZdZdZdZidd6dd6dd6dd6dd6Z idddgd6ddgd6ddgd 6Z!d!Z"d"Z#d#e$fd$YZ%d%Z&dd&Z(d'Z)d(Z*d)Z+e,dd*Z-d+Z.d,Z/e#d-Z0e#d.Z1d/Z2d0Z3d1Z4d2Z5d3Z6d4Z7e#e&d5Z8ej9e#e&ej:dd6Z;e#d7Z<d8Z=d9Z>dd:Z?d;Z@d<ZAdS(>iNi(t constants(tconfig(tconfig_handlers(t log_utils(t process_utils(tutils(tauth(terrors(tselinux(tfetch(t update_utils(t server_info(tjson_loads_nstrturlquotet HTTPError(tDicttListtTuples!/usr/libexec/kcare/libcare-clients/run/libcare/libcare.socks/var/run/libcare.socks /var/cache/kcare/libcare_patchess /var/cache/kcare/libcare_cvelists&/etc/sysconfig/kcare/libcare.logrotatetdbtmysqldtmariadbdtpostgrestqemusqemu-kvmsqemu-system-x86_64tlibctlibssltlibscGstjjtjd||S(Nt userspace(tostpathtjoinRt PATCH_CACHE(tlibnametparts((s-/usr/libexec/kcare/python/kcarectl/libcare.pytget_userspace_cache_path.scsfd}|S(NcsYz||SWdytdWn/tk rS}tjdj|dtnXXdS(Nt clearcaches$Libcare cache clearing failed: '{0}'t print_msg(tlibcare_clientt ExceptionRtlogerrortformattFalse(targstkwargsterr(tclbl(s-/usr/libexec/kcare/python/kcarectl/libcare.pytwrapper3s ((R,R-((R,s-/usr/libexec/kcare/python/kcarectl/libcare.pytclear_libcare_cache2s tUserspacePatchLevelcBs)eZddZddZdZRS(cCst||j||S(N(tsupert__new__(tclsRtbuildidtleveltbaseurl((s-/usr/libexec/kcare/python/kcarectl/libcare.pyR1AscCs(||_||_||_||_dS(N(R4RR3R5(tselfRR3R4R5((s-/usr/libexec/kcare/python/kcarectl/libcare.pyt__init__Ds   cGst|j|jt||S(N(R!RR3tstr(R6R ((s-/usr/libexec/kcare/python/kcarectl/libcare.pyt cache_pathJsN(t__name__t __module__tNoneR1R7R9(((s-/usr/libexec/kcare/python/kcarectl/libcare.pyR/@s  csdfd}|S(NcSsd \}}z|dkr't}ni}g}xft|D]X}|jdd||jdsRLs-js-ls-rs/Gathering userspace libraries info error: '{0}'s tcommtpidRc3s4|]*\}}d|ks" r||fVqdS(tpatchlvlN((Rtktv(tpatched(s-/usr/libexec/kcare/python/kcarectl/libcare.pys s(RtsortedR$R%RRyR'tsplitRFtjsontloadst ValueErrortpoptdictRG(RtlimittregexpRtlinesR+tresulttline((Rs-/usr/libexec/kcare/python/kcarectl/libcare.pyRCs&%   @ .c Cst}xJ|D]B}x9|djD]'\}}|j|d|dfq'WqWg}xtD]{}xr|D]j\}}t||t|d} tjj| rpt | d} |j t j | WdQXqpqpWqcW|S(NRR3Rs info.jsontr( tsetRGtaddt USERSPACE_MAPR!R8RRtisfiletopenRFRtload( RLR?RQt_tdataRRR~Rtpatch_info_filenametfd((s-/usr/libexec/kcare/python/kcarectl/libcare.pyRDs  # 'cCs ttS(N(RDRC(((s-/usr/libexec/kcare/python/kcarectl/libcare.pytlibcare_patch_info_basicscCs3t}|stjdntji|d6S(NsNo patched processes.R(RRR&Rtdumps(R((s-/usr/libexec/kcare/python/kcarectl/libcare.pytlibcare_patch_infos cCs3t}|stjdntji|d6S(NsNo patched processes.R(RCRR&RR(R((s-/usr/libexec/kcare/python/kcarectl/libcare.pyt libcare_infos cCs=i}x0tD]%}|jdd||jd(RRE(RRQ((s-/usr/libexec/kcare/python/kcarectl/libcare.pyt_libcare_versions#cCs7x0tjD]\}}|j|r|SqWdS(NR=(RRGt startswith(RR>tversion((s-/usr/libexec/kcare/python/kcarectl/libcare.pytlibcare_versionscCsdjd|DdS(NR=css"|]}tj|dVqdS(tN(Rtbstr(Rtp((s-/usr/libexec/kcare/python/kcarectl/libcare.pys sR(R(tparams((s-/usr/libexec/kcare/python/kcarectl/libcare.pytlibcare_client_format scCs:x$tD]}tjj|r|SqWtjddS(NsLibcare socket is not found.(tLIBCARE_SOCKETRRRqRRy(tlibcare_socket((s-/usr/libexec/kcare/python/kcarectl/libcare.pytget_available_libcare_socket s cGstjrtjdntjtjtjd}|jdd}z|jt |jtj t |}t j djd||j|x-tr|jd}|sPn||7}qW|jdd }t j d jd ||SWd|jXdS( NsLibcare is disabled.ii R=sLibcare socket send: {cmd}Risutf-8treplaces!Libcare socket recieved: {result}R(RRRRytsockettAF_UNIXt SOCK_STREAMt settimeouttconnectRtLIBCARE_SOCKET_TIMEOUTRRtlogdebugR'tsendallRJtrecvtdecodetclose(RtsocktresRRR((s-/usr/libexec/kcare/python/kcarectl/libcare.pyR$s(     cCsx|D]}ytdt|Wn+tk rQ}tjdj|nXytdWqtk r}tjdj|qXqWdS(Ntstorages(Userspace storage switching error: '{0}'RWs%Userspace patch applying error: '{0}'(R$R!R%RRyR'(RRR+((s-/usr/libexec/kcare/python/kcarectl/libcare.pytlibcare_patch_apply,s cCs@ytdWn+tk r;}tjdj|nXdS(Ntunloads&Userspace patch unloading error: '{0}'(R$R%RRyR'(R+((s-/usr/libexec/kcare/python/kcarectl/libcare.pytlibcare_unload9scCstjt|tjkr.tj r.dS|dkrOtt j }ng}x'|D]}|j t j |gq\W|st jdj|dStd|\}}}}|rtjdn|st jddStjtjjtjdtyt|Wn8tjk rW}t jt|tjdnXt} t| } ttd| DsdSt jdjd |t jd jd | t d | j!D} t d |j!D} | | } t"d| j!D}t jdjdt#| d|x9| j$D]+\}}t jdj|t#|qOW| S(s0Patch userspace processes to the latest version.sNo such userspace patches: {0}Rs:There was an errors while patches downloading (unpacking).sNo patches were found.Rs+There was an errors while patches applying.css|]}|dVqdS(RN((Rtitem((s-/usr/libexec/kcare/python/kcarectl/libcare.pys tssPatched before: {before}tbeforesPatched after: {after}taftercss"|]}|D] }|Vq qdS(N((RRGR((s-/usr/libexec/kcare/python/kcarectl/libcare.pys {scss"|]}|D] }|Vq qdS(N((RRGR((s-/usr/libexec/kcare/python/kcarectl/libcare.pys |scss|]}t|VqdS(N(tlen(RR((s-/usr/libexec/kcare/python/kcarectl/libcare.pys ssThe patches have been successfully applied to {count} newly discovered processes. The overall amount of applied patches is {overall}.tcounttoveralls*Object `{0}` is patched for {1} processes.N(%Rtlog_all_parent_processestrotate_libcare_logsRtUPDATE_MODE_AUTORtLIB_AUTO_UPDATER<tlistRtkeystextendRERtloginfoR'tcheck_userspace_updatesRRyRtrestore_selinux_contextRRRRRR&R8RCt_get_userspace_procstanyRRtvaluestsumRRG(tmodeRtprocess_filtertuserspace_patchtfailedtsomething_foundRRRt data_afterRtuniq_procs_aftertuniq_procs_beforetdiffRRR((s-/usr/libexec/kcare/python/kcarectl/libcare.pytdo_userspace_updateBsR        #cCs_yt\}}}}Wntjk r0dSX|r;dS|rEdStjddr[dSdS(Niitfilenames.libcarestatusii(RRRyR tstatus_gap_passed(RRtlibs_not_patched((s-/usr/libexec/kcare/python/kcarectl/libcare.pytget_userspace_update_statusscCsi}xy|D]q}xh|djD]V\}}|jdr$||krXg||sz     )     -          G   *