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/samba_share.pyc
�
c�L]c@s^ddlZejdde�ZejZddlTddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBsYeZed�Zed�Zed�ZdZed�Zd�Zd�Z	d�Z
RS(sV
    SELinux is preventing Samba ($SOURCE_PATH) "$ACCESS" access to $TARGET_PATH.
    s�
    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.
    s
    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'"
    s(chcon -R -t samba_share_t '$TARGET_PATH's2You need to change the label on '$FIX_TARGET_PATH'cCs;d}d}|dkr'd}d}ntd�||fS(Nttdirs(/.*)?s-Rsb# semanage fcontext -a -t samba_share_t '$FIX_TARGET_PATH%s'
# restorecon %s -v '$FIX_TARGET_PATH'(t_(tselftavcttclasstdpathtrflag((s0/usr/share/setroubleshoot/plugins/samba_share.pytget_do_text.s	cCs!tj|t�|jd�dS(Ni3(Rt__init__t__name__tset_priority(R((s0/usr/share/setroubleshoot/plugins/samba_share.pyR
8scCs�|jdg�r{|jdddddg�r{|j|j|j�r{|jddg�r{|j�r{|j|j�SdSdS(	Ntsmbd_tshttpd_.*_content_ttrsync_data_tthome_root_ts
.*_home_dir_ts	.*_home_ttfileR(
tmatches_source_typestmatches_target_typestall_accesses_are_intcreate_file_permstcreate_dir_permst
has_tclass_intpath_is_not_standard_directorytreportR	tNone(RR((s0/usr/share/setroubleshoot/plugins/samba_share.pytanalyze<s(Rt
__module__Rtsummarytproblem_descriptiontfix_descriptiontfix_cmdt	then_textRR
R(((s0/usr/share/setroubleshoot/plugins/samba_share.pyRs				
	(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s0/usr/share/setroubleshoot/plugins/samba_share.pyt<module>s