HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/policies/distros/__pycache__/cos.cpython-36.pyc
3

3��d�@s8ddlmZmZddlmZdd�ZGdd�de�ZdS)�)�	CosPlugin�IndependentPlugin)�LinuxPolicycCs|j�p|j�jd�S)aHTest whether line is empty of contains a comment.

        Test whether the ``line`` argument is either blank, or a
        whole-line comment.

        :param line: the line of text to be checked.
        :returns: ``True`` if the line is blank or a comment,
                  and ``False`` otherwise.
        :rtype: bool
    �#)�strip�lstrip�
startswith)�line�r
�/usr/lib/python3.6/cos.py�_blank_or_commentsrcsFeZdZdZdZd
gZeegZdZ	d�fdd	�	Z
eddd��Z�Z
S)�	CosPolicyzContainer-Optimized OSzGoogle Cloud Platform�Distribution Website�0https://cloud.google.com/container-optimized-os/z</usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbinNTcs,tt|�j||||d�|jtg7_dS)N)�sysroot�init�
probe_runtime�remote_exec)�superr
�__init__�valid_subclasses)�selfrrrr)�	__class__r
rr'szCosPolicy.__init__�cCs`|r|j|kSy4tdd�� }tdd�|D��}|ddkSQRXWnttfk
rZdSXdS)Nz/etc/os-release�rcss$|]}t|�s|j�jd�VqdS)�=N)rr�split)�.0r	r
r
r�	<genexpr>5sz"CosPolicy.check.<locals>.<genexpr>ZIDZcosF)�distro�open�dict�IOError�KeyError)�clsZremote�fpZ
os_releaser
r
r�check.s
zCosPolicy.check)rr)NNTN)r)�__name__�
__module__�__qualname__rZvendorZvendor_urlsrrr�PATHr�classmethodr&�
__classcell__r
r
)rrr
sr
N)Zsos.report.pluginsrrZsos.policies.distrosrrr
r
r
r
r�<module>s