File: //usr/share/setroubleshoot/plugins/catchall_boolean.pyo
�
c�L]c @ sv d d l Z 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 e f d � � YZ d S( i����Ns setroubleshoot-pluginst fallback( t *( t Plugint pluginc B s_ e Z e d � Z e d � Z e d � Z d Z d � Z d � Z d � Z d � Z
d � Z RS( sN
SELinux is preventing $SOURCE_PATH "$ACCESS" access on $TARGET_PATH.
s:
SELinux denied access requested by $SOURCE. The current boolean
settings do not allow this access. If you have not setup $SOURCE to
require this access this may signal an intrusion attempt. If you do intend
this access you need to change the booleans on this system to allow
the access.
s�
Confined processes can be configured to run requiring different access, SELinux provides booleans to allow you to turn on/off
access as needed.
t c C s* t j | t � | j d � d | _ d S( Ni t yellow( R t __init__t __name__t set_priorityt level( t self( ( s5 /usr/share/setroubleshoot/plugins/catchall_boolean.pyR 5 s
c C sW t j | d � } t | t � s7 t | d d �} n t d � | d j � | d S( Ni t encodingt utf8s If you want to %si ( t seobjectt boolean_desct
isinstancet unicodet _t lower( R
t avct argst txt( ( s5 /usr/share/setroubleshoot/plugins/catchall_boolean.pyt get_if_text: s c C s t d � | d | d f S( Ns setsebool -P %s %si i ( R ( R
R R ( ( s5 /usr/share/setroubleshoot/plugins/catchall_boolean.pyt get_do_text@ s c C se t d � | d } y9 | d rL | d d k rL | t d � | d 7} n Wn t k
r` n X| S( Ns? You must tell SELinux about this by enabling the '%s' boolean.
i i t Nones, You can read '%s' man page for more details.( R t
IndexError( R
R R t text( ( s5 /usr/share/setroubleshoot/plugins/catchall_boolean.pyt
get_then_textC s
c C s� | j | j j � } t | j � d k r� g } | j } d } | j } xQ | D]I } | sq | j | d � } n | j | j | d | d | f � � qO W| Sd S( Ni R i ( t
check_for_mant scontextt typet lent boolst fix_descriptiont appendt reportR ( R
R t man_paget reportst fixt fix_cmdR t b( ( s5 /usr/share/setroubleshoot/plugins/catchall_boolean.pyt analyzeM s
+( R t
__module__R t summaryt problem_descriptionR! R'