Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
;j @ sR d dl Z ddlmZmZmZmZ dd Zdd Zdd Zd
d Z ej
dd
ZdS ) N )errors log_utils
process_utilsutilsc C s" t jj| \}}t jj|d| S )Nztmp.)ospathsplitjoin)fnameheadtail r -/usr/libexec/kcare/python/kcarectl/selinux.pyselinux_safe_tmpname
s r c C sN t rJtjdd
d| g}tj|ddd\}}}|rJtjdj| ||dd d S )NZ
restorecon /usr/sbin/sbinz-RT)catch_stdoutcatch_stderrz8SELinux context restoration for {0} failed with {1}: {2}F) print_msg)r r )is_selinux_enabledr find_cmdrun_commandr logerrorformat)dnamecmdcode_stderrr r r restore_selinux_context s r c C sV t jddgdd\}}}|r2tjdj||ddx|jdD ]}| |kr>dS q>W d S )
Nz/usr/sbin/semodulez-lT)r z/SELinux modules list gathering error: '{0}' {1}zselinux modules error)status
F)r r r
KcareErrorr r )Z
semodule_namer outerrliner r r is_selinux_module_present s r' c s fdd}|S )Nc s$ t rtd rtjd | |S )Nlibcarez:SELinux is enabled but libcare policy module is not loaded)r r' r r# )argskwargs)clblr r wrapper% s
z*skip_if_no_selinux_module..wrapperr )r+ r, r )r+ r skip_if_no_selinux_module$ s r- c C s, t jjdr tjdg\} }}ndS | dkS )Nz/usr/sbin/selinuxenabledFr )r r isfiler r )r r r r r r - s r )r r r r r r r r' r- cachedr r r r r s