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__/auditd.cpython-36.pyc
3

3��d;�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s$eZdZdZdZd	Zd
Zdd�ZdS)�AuditdzAudit daemon informationZauditd�system�security�auditcCs�|jddddddg�|jd�|jdd	d
�|jddd
�d}d
}y\t|d��H}x@|j�j�D]0}|sjq`|jd�}|dj�dkr`|dj�}q`WWdQRXWn4tk
r�}z|jd||f�WYdd}~XnX|j	d�s�|j|�n|j|d�dS)Nz/etc/audit/auditd.confz/etc/audit/audit.rulesz/etc/audit/audit-stop.rulesz/etc/audit/rules.d/z/etc/audit/plugins.d/z/etc/audisp/z8ausearch --input-logs -m avc,user_avc,fanotify -ts todayzauditctl -lZauditctl_rules)Ztagszauditctl -sZauditctl_statusz/var/log/audit/audit.log�r�=r�log_file�zCould not open conf file %s: %sZall_logs�*)
Z
add_copy_specZadd_cmd_output�open�read�
splitlines�split�strip�IOErrorZ
_log_errorZ
get_option)�selfZconfig_filer
Zcf�lineZwords�error�r�/usr/lib/python3.6/auditd.py�setups6

zAuditd.setupN)rr)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>	s