§ ;Š»j¥" ã ó® — d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z dZ dZdZdZ ej e¦ « Zd„ Zd„ Ze fd„Ze fd „Ze fd „Zd„ ZdS )é Nz/etc/sysconfig/cloudlinuxÚhooksú;zpython-cllib:clhook:c ót — t j dd¬¦ « }t |_ | | ¦ « |S )z6 read config from file_name return config NF)Ú interpolationÚstrict)ÚconfigparserÚConfigParserÚstrÚoptionxformÚread)Ú file_nameÚconfigs ú�/builddir/build/BUILDROOT/alt-python27-cllib-3.4.44-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clhook.pyÚ get_configr s8 € õ Ô &°TÀ%Ð HÑ HÔ H€FÝ€FÔØ ‡K‚K� ÑÔÐØ€Mó c ót — t j t j |¦ « ¬¦ « \ }} t j |d¦ « t j |dd¬¦ « 5 }d}| |¦ « ddd¦ « n# 1 swxY w Y t j ||¦ « n]# t $ rP |�& t j |¦ « n# t $ r Y nw xY w t j |¦ « n# t $ r Y nw xY w‚ w xY wn/# t $ r"}d|› |› dt |¦ « › �gcY d}~S d}~ww xY wd d gS )zG write config to file_name return [BOOLEAN_STATE, MESSAGE] )Údiri¤ Úwúutf-8)ÚencodingNFz write error TúOK )ÚtempfileÚmkstempÚosÚpathÚdirnameÚfchmodÚfdopenÚwriteÚshutilÚmoveÚ BaseExceptionÚcloseÚOSErrorÚunlinkÚIOErrorr )r r Údebug_local_nameÚfdÚtmp_cfg_pathÚ tmpconfigÚes r Úwrite_configr, ' sÓ € ð OÝ#Ô+µ´·²À Ñ0JÔ0JÐKÑKÔKшˆLð ÝŒI�b˜%Ñ Ô Ð Ý”˜2˜s¨WÐ5Ñ5Ô5ð (¸Ø�Ø—’˜YÑ'Ô'Ð'ð (ð (ð (ñ (ô (ð (ð (ð (ð (ð (ð (øøøð (ð (ð (ð (õ ŒK˜ iÑ0Ô0Ð0Ð0øÝð ð ð Øˆ~ðÝ”H˜R‘L”L�L�LøÝð ð ð Ø�Dðøøøð Ý” ˜,Ñ'Ô'Ð'Ð'øÝð ð ð Ø�ð øøøàð øøøð 1øõ ð Oð Oð OØÐ*ÐM¨IÐMÐMÅSÈÁVÄVÐMÐMÐNÐNÐNÐNÐNÐNÐNøøøøðOøøøà�&ˆ>Ðs ‚5D ¸,B) Á$BÁ<B) ÂBÂB) ÂBÂB) Â(D Â)DÂ6Cà Dà CÃDÃCÃDÃC1Ã0DÃ1 C>Ã;DÃ=C>Ã>DÄD Ä D3ÄD.Ä(D3Ä.D3c óà — g }t |¦ « } | t | ¦ « t ¦ « }n%# t j t j f$ r d|gcY S w xY wd|gS )z+ return [BOOLEAN_STATE, hook_list] FT)r ÚgetÚHOOK_SECTIONÚsplitÚHOOK_SEPARATORr Ú NoOptionErrorÚNoSectionError)Úhook_prefixÚconfig_fileÚ hook_listr s r Úget_hook_list_from_filer7 D s€ € ð €IÝ ˜Ñ $Ô $€Fð"Ø—J’J�|¨[Ñ9Ô9×?Ò?ÅÑOÔOˆ ˆ øÝÔ&Ô(CÐDð "ð "ð "Ø�yÐ!Ð!Ð!Ð!ð"øøøà�)ÐÐs “3A ÁA)Á(A)c óÒ — t dz }t j ¦ « }t j ¦ « }t d| ||||¦ « t |¦ « } | t |¦ « t ¦ « }| |v r6t d| |¦ « d|dz t | ¦ « z dz gS | | ¦ « | t |t |¦ « ¦ « nw# t j $ r9 | t ¦ « | t || ¦ « Y n0t j $ r | t || ¦ « Y nw xY wt' |||¦ « }|d rt d| |¦ « n#t d | ||d ¦ « |S )zE add hook to config file return [BOOLEAN_STATE, MESSAGE] zregister_hook:zYregister_hook: hook_path=%s, hook_prefix=%s, config_file=%s, caller_uid=%d, caller_pid=%dzAregister_hook: hook_path=%s already registered for hook_prefix=%sTzHook z already registred r zCregister_hook: successfully registered hook_path=%s, hook_prefix=%szHregister_hook: failed to register hook_path=%s, hook_prefix=%s, error=%sé )ÚDEBUG_STRINGr ÚgetuidÚgetpidÚloggerÚinfor r. r/ r0 r1 r ÚappendÚsetÚjoinr r3 Úadd_sectionr2 r, Úwarning© Ú hook_pathr4 r5 r' Ú caller_uidÚ caller_pidr r6 Úresults r Ú register_hookrI Q s € õ $Ð&6Ñ6ÐÝ”‘”€JÝ”‘”€JÝ ‡K‚Kð /à˜;¨°ZÀñMô Mð Mõ ˜Ñ $Ô $€Fð9Ø—J’J�|¨[Ñ9Ô9×?Ò?ÅÑOÔOˆ ؘ Ð!Ð!Ý�KŠKð )Ø*3°[ñ Bô Bð BàÐ*¨WÑ4µs¸9±~´~ÑEÐH^Ñ^Ð`Ð`Ø×Ò˜Ñ#Ô#Ð#Ø� Š •< n×.AÒ.AÀ)Ñ.LÔ.LÑMÔMÐMÐMøÝÔ&ð