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/report/plugins/__pycache__/autofs.cpython-36.pyc
3

3��d(�@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�UbuntuPlugin�DebianPluginc@s@eZdZdZdZdZdZdZdd�Zd	d
�Z	dd�Z
d
d�ZdS)�AutofszAutofs on-demand automounter�autofs�storage�nfs�/etc/sysconfig/autofs�/etc/default/autofscCsB|jd|j��}x,|D]$}x|jd�D]}|dkr&dSq&WqWdS)	z; testing if autofs debug has been enabled anywhere
        �%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)� �--debug�debugTF)r)rr)�	file_grep�files�split)�self�optZopt1Zopt2�r�/usr/lib/python3.6/autofs.py�
checkdebugs

zAutofs.checkdebugcCs(|jd|j��}x|D]
}|dSWdS)z% capture daemon debug output
        �^(daemon.*)\s+(\/var\/log\/.*)�N)r)rr)rZdebugout�irrr�getdaemondebug$s

zAutofs.getdaemondebugcCsF|jd�|jddi�|jd�|jd�|j�rB|j|j��dS)Nz
/etc/auto*z/etc/autofs.confZautofs_confrzautomount -m)Z
add_copy_specZ
add_file_tagsZadd_service_status�add_cmd_outputrr)rrrr�setup,s


zAutofs.setupcCs.|jddd�|jddd�|jddd�dS)Nz
/etc/auto*z(password=)[^,\s]*z
\1********z/etc/autofs_ldap_auth.confz&(secret[\s]*[=]+[\s]*)(\'|\").*(\'|\")z\1\2********\3zautomount -m)Zdo_path_regex_subZdo_file_subZdo_cmd_output_sub)rrrr�postproc4szAutofs.postprocN)rr	)r
r)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrZpackagesrrrrrrrrrsrcseZdZ�fdd�Z�ZS)�RedHatAutofscs&tt|�j�|jd�r"|jd�dS)NZverifyzrpm -qV autofs)�superr"rZ
get_optionr)r)�	__class__rrrVs
zRedHatAutofs.setup)rr r!r�
__classcell__rr)r$rr"Tsr"cseZdZ�fdd�Z�ZS)�DebianAutofscstt|�j�|jd�dS)Nzdpkg-query -s autofs)r#r&rr)r)r$rrr^szDebianAutofs.setup)rr r!rr%rr)r$rr&\sr&N)Zsos.report.pluginsrrrrrr"r&rrrr�<module>sF