File: //usr/share/setroubleshoot/plugins/file.pyc
�
c�L]c @ s^ d d l Z e j d d e �Z e j Z d d l Td d l m Z d 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( sG
SELinux is preventing access to files with the label, file_t.
sH
SELinux permission checks on files labeled file_t are being
denied. file_t is the context the SELinux kernel gives to files
that do not have a label. This indicates a serious labeling
problem. No files on an SELinux box should ever be labeled file_t.
If you have just added a disk drive to the system you can
relabel it using the restorecon command. For example if you saved the
home directory from a previous installation that did not use SELinux, 'restorecon -R -v /home' will fix the labels. Otherwise you should
relabel the entire file system.
sz
You can execute the following command as root to relabel your
computer system: "touch /.autorelabel; reboot"
c C s$ | d k r t d � St d � Sd S( Ni i s. This is caused by a newly created file system.s: If you think this is caused by a badly mislabeled machine.( i i ( t _( t selft avct args( ( s) /usr/share/setroubleshoot/plugins/file.pyt get_if_text/ s
c C s$ | d k r t d � St d � Sd S( Ni i s you need to add labels to it.s you need to fully relabel.( i i ( R ( R R R ( ( s) /usr/share/setroubleshoot/plugins/file.pyt
get_then_text5 s
c C s | d k r d Sd Sd S( Ni i s# /sbin/restorecon -R -v $TARGET_PATHs touch /.autorelabel; reboot( i i ( ( R R R ( ( s) /usr/share/setroubleshoot/plugins/file.pyt get_do_text; s c C s* t j | t � d | _ | j d � d S( Nt greeni ( R t __init__t __name__t levelt set_priority( R ( ( s) /usr/share/setroubleshoot/plugins/file.pyR A s c C sP | j d g � rH g } | j | j d � � | j | j d � � | Sd Sd S( Nt file_ti i i ( i i ( i i ( t matches_target_typest appendt reportt None( R R t reports( ( s) /usr/share/setroubleshoot/plugins/file.pyt analyzeF s ( R
t
__module__R t summaryt problem_descriptiont fix_descriptionR R R
R R ( ( ( s) /usr/share/setroubleshoot/plugins/file.pyR s ( t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR R ( ( ( s) /usr/share/setroubleshoot/plugins/file.pyt <module> s