Tj * d dl Z d dlZdZd Zd ZdZdS ) NzAleksandr Shyshatskyc t j | r>t j | rt j | t j sdS t j | }n# t $ r Y dS w xY w|j dk s|j dk rdS |j t j t j z z rdS dS )zReturn True only if path is absolute, a regular file, executable, owned by root, and not writable by group or other (F-13).Fr T) ospathisabsisfileaccessX_OKstatOSErrorst_uidst_gidst_modeS_IWGRPS_IWOTH)r sts /builddir/build/BUILDROOT/alt-python27-cllib-3.4.41-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clcustomscript.py_is_safe_scriptr s GMM$ BGNN4$8$8 $((u WT]] uu yA~~au zT\DL01 u4s !A6 6 BBc X d} t j t rt t dd 5 }| }ddd n# 1 swxY w Y |D ]}| }| | rs| d }t | dk rK|d | k r-|d }t | r|c S n# t t t f$ r Y nw xY wdS ) z Retrives custom panel script for lvectl from CL config file :return: Script full path or None if script filename not find in config CUSTOM_GETPACKAGE_SCRIPTrzutf-8)encodingN= r )r r existsCLSYSCONFIGopen readlinesstrip startswithsplitlenr r IOError IndexError)config_param_namef file_linesline line_partsscript_names r lvectl_custompanel_scriptr+ sf 3 7>>+&&