HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/samba_share.cpython-36.pyc
3

m��a��@sDddlZejddd�ZejZddlTddlmZGdd�de�ZdS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sHeZdZed�Zed�Zed�ZdZed�Zdd�Z	dd	�Z
d
d�ZdS)
�pluginzV
    SELinux is preventing Samba ($SOURCE_PATH) "$ACCESS" access to $TARGET_PATH.
    a�
    SELinux denied samba access to $TARGET_PATH.
    If you want to share this directory with samba it has to have a file context label of
    samba_share_t. If you did not intend to use $TARGET_PATH as a samba repository,
    this message could indicate either a bug or an intrusion attempt.
    Please refer to 'man samba_selinux' for more information on setting up Samba and SELinux.
    a
    You can alter the file context by executing chcon -R -t samba_share_t '$TARGET_PATH'
    You must also change the default file context files on the system in order to preserve them even on a full relabel.  "semanage fcontext -a -t samba_share_t '$FIX_TARGET_PATH'"
    z(chcon -R -t samba_share_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'cCs(d}d}|dkrd}d}td�||fS)N��dirz(/.*)?z-Rzb# semanage fcontext -a -t samba_share_t '$FIX_TARGET_PATH%s'
# restorecon %s -v '$FIX_TARGET_PATH')�_)�self�avc�tclassZdpathZrflag�r�0/usr/share/setroubleshoot/plugins/samba_share.py�get_do_text.szplugin.get_do_textcCstj|t�|jd�dS)N�3)r�__init__�__name__Zset_priority)rrrrr8szplugin.__init__cCs^|jdg�rV|jdddddg�rV|j|j|j�rV|jddg�rV|j�rV|j|j�SdSdS)	NZsmbd_tzhttpd_.*_content_tZrsync_data_tZhome_root_tz
.*_home_dir_tz	.*_home_t�filer)	Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZcreate_file_permsZcreate_dir_permsZ
has_tclass_inZpath_is_not_standard_directoryZreportr
)rr	rrr�analyze<szplugin.analyzeN)r�
__module__�__qualname__rZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZ	then_textr
rrrrrrrs
r)�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginrrrrrr�<module>s