+
     6g  c                   s    ^ RI t ] P                  ! RRR7      t]P                   t^ RI5 ^ RIHt ^ RIt^ RI5  ! R R]4      tR# )	    Nzsetroubleshoot-pluginsT)Zfallback)Z*)Pluginc                   sn   a  ] tR t^t o ]! R4      t]! R4      t]! R4      tR tR t	R t
R tR tR	tV tR
# )pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    z
    SELinux denied access requested by $SOURCE. $TARGET_PATH may
    be mislabeled. openvpn is allowed to read content in home directory if it
    is labeled correctly.
    z
    You can restore the default system context to this file by executing the
    restorecon command.  
    # restorecon -R /root/.ssh
    c                J    V^ ,          R8X  d   \        R4      # \        R4      # )r    movezjIf you want to mv $TARGET_BASE_PATH to standard location so that $SOURCE_BASE_PATH can have $ACCESS accesszlIf you want to modify the label on $TARGET_BASE_PATH so that $SOURCE_BASE_PATH can have $ACCESS access on it_selfavcZargs   &&&,/usr/share/setroubleshoot/plugins/openvpn.pyget_if_textZplugin.get_if_text/   s8    Gv  B  C  C  D  E  E    c                r   )r    r   z4you must move the cert file to the ~/.cert directoryzyou must fix the labels.r   r   r
   r   get_then_textZplugin.get_then_text5   s&    GvKLL/00r   c                s&    V^ ,          R8X  d   R# R# )r    r   z5# mv $TARGET_PATH ~/.cert
# restorecon -R -v ~/.cert
zS# semanage fcontext -a -t home_cert_t $TARGET_PATH
# restorecon -R -v $TARGET_PATH
 r   r
   r   get_do_textZplugin.get_do_text;   s    Gvr   c                sl    \         P                  ! V \        4       V P                  ^4       RV n        R# )i   ZyellowN)r   __init____name__Zset_prioritylevel)r   s   &r   r   Zplugin.__init__E   s%    h'!
r   c                s   VP                  R .4      '       du   VP                  RR.4      '       d\   VP                  VP                  4      '       d;   VP	                  R.4      '       d#   V P                  R4      V P                  R4      .# R# )Z	openvpn_tZuser_home_tZ
user_tmp_tZfileN)r   N)ZfixlabelN)Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZread_file_permsZhas_tclass_inZreport)r   r	   s   &&r   analyzeZplugin.analyzeJ   sv    $$k]33((-)FGG''(;(;<<!!6(++KK.<M0NOOr   )r   N)r   Z
__module__Z__qualname__Z__firstlineno__r   ZsummaryZproblem_descriptionZfix_descriptionr   r   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      sV       	G   	   	OE1
 r   r   )	ZgettextZtranslationr   Zsetroubleshoot.utilZsetroubleshoot.Pluginr   ZosZstatr   r   r   r   <module>r      s@   *  84H ! ( 	 3V 3r   