+
     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# )pluginzY
    SELinux prevented the ftp daemon from $ACCESS files stored on a NFS filesystem.
    aU  
    SELinux prevented the ftp daemon from $ACCESS files stored on a NFS filesystem.
    NFS (Network Filesystem) is a network filesystem commonly used on Unix / Linux
    systems.

    The ftp daemon attempted to read one or more files or directories from
    a mounted filesystem of this type.  As NFS 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 NFS filesystem
    this access attempt could signal an intrusion attempt.
    z|
    Changing the "allow_ftpd_use_nfs" boolean to true will allow this access:
    "setsebool -P allow_ftpd_use_nfs=1."
    z7/usr/sbin/setsebool -P ftpd_use_nfs=1 ftpd_anon_write=1a   Changing the "allow_ftpd_use_nfs" and
    "ftpd_anon_write" booleans to true will allow this access:
    "setsebool -P allow_ftpd_use_nfs=1 ftpd_anon_write=1".
    warning: setting the "ftpd_anon_write" 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 NFS filesystems.  z6If you want to allow ftpd to write to nfs file systemsz you must tell SELinux about thisz/# setsebool -P ftpd_use_nfs=1 ftpd_anon_write=1c                sj    \         P                  ! V \        4       R V n        \	        R4      V n        R# )TzEnable booleans.N)r    __init____name__fixable_button_text)selfs   &7/usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyr   Zplugin.__init__D   s%    h'/0    c                s    VP                  R .4      '       dv   VP                  R.4      '       d^   VP                  RR.4      '       dE   VP                  VP                  VP
                  ,           4      '       d   V P                  RR7      # R# )Zftpd_tZnfs_tZfileZdir)ZargsN)Zftpd_use_nfsZ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.analyzeI   sv    $$hZ00$$gY//vuo.. &&s'<'<s?O?O'OPP{{(K{LL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
 HG 3 4 KJHIG45I?G1
	 	r	   r   )ZgettextZtranslationr   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    r   ) r	   r   <module>r      s:   *  84H ! (6V 6r	   