3 ܓiT@s&ddlmZmZGdddeeZdS))PluginIndependentPluginc@s$eZdZdZdZd Zd ZddZdS) AuditdzAudit daemon informationZauditdsystemsecurityauditcCs|jddddddg|jd|jdd d |jd d d d}d }y`t|dddH}x@|jjD]0}|snqd|jd}|djdkrd|dj}qdWWdQRXWn8tk r}z|jd|d|WYdd}~XnX|j ds|j|n|j|ddS)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 todayz auditctl -lZauditctl_rules)Ztagsz auditctl -sZauditctl_statusz/var/log/audit/audit.logrzUTF-8)encoding=rlog_filezCould not open conf file z: Zall_logs*) Z add_copy_specZadd_cmd_outputopenread splitlinessplitstripIOErrorZ _log_errorZ get_option)selfZ config_filer cfilelineZwordserrorr/usr/lib/python3.6/auditd.pysetups4 (  z Auditd.setupN)rr)r)__name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesZpackagesrrrrrr s rN)Zsos.report.pluginsrrrrrrr s