U
    -_g                     @   sR   d dl mZmZmZmZ G dd deZG dd deeZG dd deeeZdS )	    )PluginRedHatPluginDebianPluginUbuntuPluginc                   @   s(   e Zd ZdZdZdZdZdZdd ZdS )	Aidez(Advanced Intrusion Detection Environmentaide)systemZsecurity)r   /etc/aide/aide.confc                 C   s<   |  d| j d | dr,| dg n| dg d S )Nzaide -c z --config-checkZall_logsz/var/log/aide/z/var/log/aide/aide.log)Zadd_cmd_output	conf_fileZ
get_optionadd_copy_specself r   9/usr/lib/python3/dist-packages/sos/report/plugins/aide.pysetup   s    
z
Aide.setupN)	__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesr
   r   r   r   r   r   r      s   r   c                       s    e Zd ZdZ fddZ  ZS )
RedHatAide/etc/aide.confc                    s   t    | ddg d S )Nr   z/etc/logrotate.d/aidesuperr   r   r   	__class__r   r   r   &   s
    
zRedHatAide.setupr   r   r   r
   r   __classcell__r   r   r   r   r   #   s   r   c                       s    e Zd ZdZ fddZ  ZS )
DebianAider	   c                    s   t    | ddg d S )Nz
/etc/aide/z/etc/default/aider   r   r   r   r   r   1   s
    
zDebianAide.setupr   r   r   r   r   r   .   s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   r   r   r   r   <module>	   s   