+
     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t]! R4      t	Rt
]! R4      t]! R4      tRtR	 tR
 tRtV tR# )pluginzZ
    SELinux prevented the ftp daemon from $ACCESS files stored on a CIFS filesystem.
    a  
    SELinux prevented the ftp daemon from $ACCESS files stored on a CIFS filesystem.
    CIFS (Comment Internet File System) is a network filesystem similar to
    SMB (<a href="http://www.microsoft.com/mind/1196/cifs.asp">http://www.microsoft.com/mind/1196/cifs.asp</a>)
    The ftp daemon attempted to read one or more files or directories from
    a mounted filesystem of this type.  As CIFS filesystems do not support
    fine-grained SELinux labeling, all files and directories in the
    filesystem will have the same security context.

    If you have not configured the ftp daemon to read files from a CIFS filesystem
    this access attempt could signal an intrusion attempt.
    zh
    Changing the "$BOOLEAN" boolean to true will allow this access:
    "setsebool -P $BOOLEAN=1."
    z8/usr/sbin/setsebool -P ftpd_use_cifs=1 ftpd_anon_write=1a   Changing the "$BOOLEAN" and
    "$WRITE_BOOLEAN" booleans to true will allow this access:
    "setsebool -P $BOOLEAN=1 $WRITE_BOOLEAN=1".
    warning: setting the "$WRITE_BOOLEAN" boolean to true will
    allow the ftp daemon to write to all public content (files and
    directories with type public_content_t) in addition to writing to
    files and directories on CIFS filesystems.  z7If you want to allow ftpd to write to cifs file systemsz you must tell SELinux about thisz0# setsebool -P ftpd_use_cifs=1 ftpd_anon_write=1c                sj    \         P                  ! V \        4       R V n        \	        R4      V n        R# )TzEnable booleansN)r    __init____name__fixable_button_text)selfs   &8/usr/share/setroubleshoot/plugins/allow_ftpd_use_cifs.pyr   Zplugin.__init__B   s%    h'./    c                s$   VP                  R .4      '       dx   VP                  R.4      '       d`   VP                  RR.4      '       dG   VP                  VP                  VP
                  ,           4      '       d   V P                  RR7      # R# R# )Zftpd_tZcifs_tZfileZdir)ZargsN)Zftpd_use_cifsZftpd_anon_write)Zmatches_source_typesZmatches_target_typesZhas_tclass_inZall_accesses_are_inZcreate_file_permsZrw_dir_permsZreport)r   Zavcs   &&r   analyzeZplugin.analyzeG   sy    $$hZ00$$hZ00vuo.. &&s'<'<s?O?O'OPP{{(L{MMr	   )r   r   N)r   Z
__module__Z__qualname__Z__firstlineno__r   ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZrw_fix_descriptionZ
rw_fix_cmdZif_textZ	then_textZdo_textr   r
   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s       	G   	   	O
 IG 4 5 LJIJG45I@G0
 r	   r   )ZgettextZtranslationr   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    r   ) r	   r   <module>r      s:   *  84H ! (7V 7r	   