⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
setroubleshoot
/
plugins
/
__pycache__
/
View File Name :
samba_share.cpython-39.opt-1.pyc
a Z` @ sD d dl Z e jdddZej Zd dlT d dlmZ G dd deZdS ) Nzsetroubleshoot-pluginsT)Zfallback)*)Pluginc @ sH e Zd ZedZedZedZdZedZdd Z dd Z d d ZdS ) 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'c C s( d}d}|dkrd}d}t d||f S )N dirz(/.*)?z-Rzb# semanage fcontext -a -t samba_share_t '$FIX_TARGET_PATH%s' # restorecon %s -v '$FIX_TARGET_PATH')_)selfavctclassZdpathZrflag r 0/usr/share/setroubleshoot/plugins/samba_share.pyget_do_text. s zplugin.get_do_textc C s t | t | d d S )N3 )r __init____name__Zset_priority)r r r r r 8 s zplugin.__init__c C sV | dgrN|g dsN||j|j rN|ddgrN| rN| |jS d S d S )NZsmbd_t)zhttpd_.*_content_tZrsync_data_tZhome_root_tz .*_home_dir_tz .*_home_tfiler ) Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZcreate_file_permsZcreate_dir_permsZ has_tclass_inZpath_is_not_standard_directoryZreportr )r r r r r analyze<