Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/auditd.cpython-36.opt-1.pyc

3

�fV�@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|ddd��H}x@|j�j�D]0}|snqd|jd�}|dj�dkrd|dj�}qdWWdQRXWn4tk
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/z;ausearch -i --input-logs -m avc,user_avc,fanotify -ts todayzauditctl -lZauditctl_rules)Ztagszauditctl -sZauditctl_statusz/var/log/audit/audit.log�rzUTF-8)�encoding�=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�cfile�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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists