+
    	:i<  c                   sr   ^ RI Ht R.t^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RI5 ]P                  ! R	4      tR
 tR t]R8X  dj   Rt^ RIt^ RIt]P.                  P1                  4       t]P5                  ]R4       ]! ]P6                  ^ ,          ]P8                  ! 4       R,           .4       R# R# )i    )absolute_importemail_alertN)MIMEText)MIMEMultipart)
formatdate)
get_config)Z*z ^\s*([^@ \t]+)(@([^@ \t]+))?\s*$c                 s    \         P                  V 4      pR pR pV'       d#   VP                  ^4      pVP                  ^4      pW#3# )N)email_addr_reZsearchZgroup)ZaddrZmatchZuserZdomains   &   ?/usr/lib/python3.14/site-packages/setroubleshoot/email_alert.pyparse_email_addrr   $   sA      &EDF{{1~Q>    c                 s   \        R R4      p\        R R\        4      p\        R R4      p\        V4      w  rVVf   RpVf   \        4       pV: RV: 2p\	        RW#RP                  V4      3,          4       V P                  4        V P                  V P                  4       4      pR	\        R R
4      : RV: 2pV P                  4       V P                  4       ,           p	\        R4      p
WR&   WJR&   RP                  V4      V
R&   \        4       V
R&   V
P                  \        V	4      4       \        R R\        4      '       gI   ^ RIp VP#                  W#4      pVP%                  WAV
P'                  4       4       VP)                  4        R# ^ RIp VP3                  . ROV
P'                  4       RRR7       R#   TP*                   d8   p\,        P,                  ! \,        P.                  RT,          4        Rp?R# Rp?ii ; i  TP4                   d8   p\,        P,                  ! \,        P.                  RT,          4        Rp?R# Rp?ii ; i)Zemail	smtp_host	smtp_portfrom_addressNZSELinuxTroubleshootZ@zalert smtp=%s:%d  -> %sZ,Z[subjectz] ZalternativeZSubjectZFromz, ZToZDateZuse_sendmailzemail failed: %sT)ZinputZcheckZuniversal_newlines)sendmailz-tz-oi)r   Zintr   Zget_hostnameZ	log_debugZjoinZ%update_derived_template_substitutionsZ
substitutesummaryZformat_textZformat_detailsr   r   Zattachr   ZboolsmtplibZSMTPr   Z	as_stringZquitZSMTPExceptionsyslogZLOG_ERR
subprocessZrunZCalledProcessError)ZsiginfoZto_addrsr
   r   r   Z	from_userZfrom_domainr   r   ZtextZ	email_msgr   ZsmtpZer   s   &&             r   r   r   .   s   7K0I7K5Ig~6L-l;I)	"n'5L'9(AS*TTU113  !23G%gy97CG 7#9#9#;;Dm,I"i$fii)IdO"IfXd^$g~t44	B<<	5DMM,)2E2E2GHIIK 		BNN4I<O<O<QY]rvNw $$ 	BMM&..*<q*@AA	B ,, 	BMM&..*<q*@AA	Bs1   	AF8 %H 8H 	,G;;H I,IIZ__main__a8
  
<?xml version="1.0" encoding="utf-8"?>
<sigs version="3.0">
  <signature_list>
    <siginfo>
      <audit_event>
        <event_id host="P1" milli="205" seconds="1643896441" serial="1401"/>
        <records>
          <audit_record record_type="AVC">
            <body_text>avc:  denied  { write } for  pid=61664 comm="passwd" path="/root/output.txt" dev="dm-1" ino=16778525 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0</body_text>
            <event_id host="P1" milli="205" seconds="1643896441" serial="1401"/>
          </audit_record>
        </records>
      </audit_event>
      <environment version="1.0">
        <enforce>Enforcing</enforce>
        <hostname>P1</hostname>
        <kernel>5.16.0-60.fc36.x86_64 x86_64</kernel>
        <local_policy_rpm>selinux-policy-targeted-35.11-1.fc35.noarch</local_policy_rpm>
        <platform>Fedora release 35 (Thirty Five)</platform>
        <policy_rpm>selinux-policy-targeted-35.11-1.fc35.noarch</policy_rpm>
        <policy_type>targeted</policy_type>
        <policyvers>33</policyvers>
        <selinux_enabled>True</selinux_enabled>
        <selinux_mls_enabled>True</selinux_mls_enabled>
        <uname>Linux P1 5.16.0-60.fc36.x86_64 #1 SMP PREEMPT Mon Jan 10 13:00:29 UTC 2022 x86_64 x86_64</uname>
      </environment>
      <first_seen_date>2022-02-03T13:48:54Z</first_seen_date>
      <last_seen_date>2022-02-03T13:54:01Z</last_seen_date>
      <level>yellow</level>
      <local_id>b0826257-4747-4257-a6aa-a890a7abd608</local_id>
      <plugin_list>
        <plugin>
          <analysis_id>catchall</analysis_id>
          <args>
            <arg>0</arg>
            <arg>file</arg>
            <arg>/root/output.txt</arg>
          </args>
        </plugin>
      </plugin_list>
      <report_count>3</report_count>
      <scontext mls="s0-s0:c0.c1023" role="unconfined_r" type="passwd_t" user="unconfined_u"/>
      <sig version="4.0">
        <access>
          <operation>write</operation>
        </access>
        <host>P1</host>
        <scontext mls="s0-s0:c0.c1023" role="unconfined_r" type="passwd_t" user="unconfined_u"/>
        <tclass>file</tclass>
        <tcontext mls="s0" role="object_r" type="admin_home_t" user="unconfined_u"/>
      </sig>
      <source>passwd</source>
      <spath>passwd</spath>
      <tclass>file</tclass>
      <tcontext mls="s0" role="object_r" type="admin_home_t" user="unconfined_u"/>
      <tpath>/root/output.txt</tpath>
      <users>
      </users>
    </siginfo>
  </signature_list>
  <users>
  </users>
</sigs>
    sigsz
@localhost)Z
__future__r    Z__all__r   ZreZemail.mime.textr   Zemail.mime.multipartr   Zemail.utilsr   Zsetroubleshoot.configr   Zsetroubleshoot.utilZcompiler   r   r   Z__name__ZxmldataZosZsetroubleshoot.signatureZsetroubleshootZ	signatureZSEFaultSignatureSetr   Zread_xmlZsignature_listZgetlogin) r	   r   <module>r      s    &(    	 $ . " , !

>?(BX z@GB ###779DMM'6"##A&)E(FGM r	   