File: //usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.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 st e Z e d � Z e d � Z e d � Z d Z e d � Z d Z e d � Z e d � Z
d Z d � Z d
� Z
RS( sY
SELinux prevented the ftp daemon from $ACCESS files stored on a NFS filesystem.
sU
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.
s|
Changing the "allow_ftpd_use_nfs" boolean to true will allow this access:
"setsebool -P allow_ftpd_use_nfs=1."
s! setsebool -P allow_ftpd_use_nfs=1s� Changing the "allow_ftpd_use_nfs" and
"$WRITE_BOOLEAN" booleans to true will allow this access:
"setsebool -P allow_ftpd_use_nfs=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 NFS filesystems. s2 setsebool -P allow_ftpd_use_nfs=1 $WRITE_BOOLEAN=1s6 If you want to allow ftpd to write to nfs file systemss you must tell SELinux about thiss9 setsebool -P allow_ftpd_use_nfs=1 allow_ftpd_anon_write=1c C s t j | t � d S( N( R t __init__t __name__( t self( ( s7 /usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyR D s c C si | j d g � re | j d g � re | j d d g � re | j | j | j � re | j d d � Sn d S( Nt ftpd_tt nfs_tt filet dirt argst allow_ftpd_use_nfst allow_ftpd_anon_write( R R
( t matches_source_typest matches_target_typest
has_tclass_int all_accesses_are_int create_file_permst rw_dir_permst reportt None( R t avc( ( s7 /usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyt analyzeG s ( R t
__module__t _t summaryt problem_descriptiont fix_descriptiont fix_cmdt rw_fix_descriptiont
rw_fix_cmdt if_textt then_textt do_textR R ( ( ( s7 /usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyR s ( t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR R ( ( ( s7 /usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyt <module> s