+
     6g	  c                   sz    ^ RI t ] P                  ! RRR7      t]P                   t^ RI5 ^ RIHt  ! R R]4      tR# )	i    Nzsetroubleshoot-pluginsT)Zfallback)Z*)Pluginc                   s   a  ] tR t^t o ]! R4      t]! R4      t]! R4      t]! R4      t]! R4      t	]! R4      t
R tR tR	tV tR
# )pluginzq
    SELinux is preventing $SOURCE_PATH from creating a file with a context of $SOURCE_TYPE on a filesystem.
    a  
    SELinux is preventing $SOURCE from creating a file with a context of $SOURCE_TYPE on a filesystem.
    Usually this happens when you ask the cp command to maintain the context of a file when
    copying between file systems, "cp -a" for example.  Not all file contexts should be maintained
    between the file systems.  For example, a read-only file type like iso9660_t should not be placed
    on a r/w system.  "cp -p" might be a better solution, as this will adopt the default file context
    for the destination.
    zX
    Use a command like "cp -p" to preserve all permissions except SELinux context.
    zTIf you believe $SOURCE_BASE_PATH should be allowed to create $TARGET_BASE_PATH fileszsyou need to use a different command. You are not allowed to preserve the SELinux context on the target file system.zNuse a command like "cp -p" to preserve all permissions except SELinux context.c                s^    \         P                  ! V \        4       V P                  ^d4       R# )id   N)r    __init____name__Zset_priority)selfs   &9/usr/share/setroubleshoot/plugins/filesystem_associate.pyr   Zplugin.__init__0   s    h'#    c                s    VP                  R .4      '       d`   VP                  R.4      '       dH   VP                  P                  \        9   d)   VP                  R.4      '       d   V P                  4       # R# )z.*fs_tZ	associateZ
filesystemN)Zmatches_target_typesZall_accesses_are_inZtcontextZtypeZ
file_typesZhas_tclass_inZreport)r   Zavcs   &&r   analyzeZplugin.analyze4   s\    $$hZ00##[M22LL+|n--;;= r    N)r   Z
__module__Z__qualname__Z__firstlineno___ZsummaryZproblem_descriptionZfix_descriptionZif_textZ	then_textZdo_textr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      so       	G   	   	O fgG  H  II`aG r   r   )ZgettextZtranslationr	   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    r   r   r   r   <module>r
      s:   &  84H ! ("V "r   