HEX
Server: Apache
System: Linux hp3-stn-1011028.hostingp3.local 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: csh958633 (951153)
PHP: 8.3.30
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: //usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyc
�
c�L]c@s^ddlZejdde�ZejZddlTddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBsteZed�Zed�Zed�ZdZed�ZdZed�Z	ed�Z
dZd	�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.  s2setsebool -P allow_ftpd_use_nfs=1 $WRITE_BOOLEAN=1s6If you want to allow ftpd to write to nfs file systemss you must tell SELinux about thiss9setsebool -P allow_ftpd_use_nfs=1 allow_ftpd_anon_write=1cCstj|t�dS(N(Rt__init__t__name__(tself((s7/usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyRDscCsi|jdg�re|jdg�re|jddg�re|j|j|j�re|jdd�SndS(	Ntftpd_ttnfs_ttfiletdirtargstallow_ftpd_use_nfstallow_ftpd_anon_write(RR
(tmatches_source_typestmatches_target_typest
has_tclass_intall_accesses_are_intcreate_file_permstrw_dir_permstreporttNone(Rtavc((s7/usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pytanalyzeGs(Rt
__module__t_tsummarytproblem_descriptiontfix_descriptiontfix_cmdtrw_fix_descriptiont
rw_fix_cmdtif_textt	then_texttdo_textRR(((s7/usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyRs					(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s7/usr/share/setroubleshoot/plugins/allow_ftpd_use_nfs.pyt<module>s