File: //usr/share/setroubleshoot/plugins/openvpn.pyo
�
c�L]c @ st d d l Z e j d d e �Z e j Z d d l Td d l m Z d d l Z d d l Td e f d � � YZ d S( i����Ns setroubleshoot-pluginst fallback( t *( t Plugint pluginc B sY e Z e d � Z e d � Z e d � Z d � Z d � Z d � Z d � Z d � Z
RS( sN
SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
s�
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.
s�
You can restore the default system context to this file by executing the
restorecon command.
# restorecon -R /root/.ssh
c C s( | d d k r t d � St d � Sd S( Ni t movesj If you want to mv $TARGET_BASE_PATH to standard location so that $SOURCE_BASE_PATH can have $ACCESS accesssl If you want to modify the label on $TARGET_BASE_PATH so that $SOURCE_BASE_PATH can have $ACCESS access on it( t _( t selft avct args( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyt get_if_text/ s
c C s( | d d k r t d � St d � Sd S( Ni R s4 you must move the cert file to the ~/.cert directorys you must fix the labels.( R ( R R R ( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyt
get_then_text5 s
c C s | d d k r d Sd Sd S( Ni R s5 # mv $TARGET_PATH ~/.cert
# restorecon -R -v ~/.cert
sS # semanage fcontext -a -t home_cert_t $TARGET_PATH
# restorecon -R -v $TARGET_PATH
( ( R R R ( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyt get_do_text; s c C s* t j | t � | j d � d | _ d S( Ni t yellow( R t __init__t __name__t set_priorityt level( R ( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyR
E s
c C sk | j d g � rg | j d d g � rg | j | j � rg | j d g � rg | j d � | j d � g Sd S( Nt openvpn_tt user_home_tt
user_tmp_tt fileR t fixlabel( s moveN( R N( t matches_source_typest matches_target_typest all_accesses_are_int read_file_permst
has_tclass_int reportt None( R R ( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyt analyzeJ s ( R t
__module__R t summaryt problem_descriptiont fix_descriptionR R
R R
R ( ( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyR s
(
t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR t ost statR ( ( ( s, /usr/share/setroubleshoot/plugins/openvpn.pyt <module> s