When configuring a Samba server on a linux box, anytime that I tried to connect via an smbclient, i would get the following error

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

further looking at /var/log/messages revealed that this was being caused by SELinux
setroubleshoot: SELinux is preventing /usr/sbin/smbd “name_connect” access on . For complete SELinux messages. run sealert -l 97453258-27dd-4980-a295-efb825ce95ca

To get around this I ran the following command to configure SELinux to allow Samba connections.

This lists available Samba options
# getsebool -a |grep samba
samba_create_home_dirs –> on
samba_domain_controller –> off
samba_enable_home_dirs –> off
samba_export_all_ro –> off
samba_export_all_rw –> off
samba_run_unconfined –> off
samba_share_fusefs –> off
samba_share_nfs –> off
use_samba_home_dirs –> off
virt_use_samba –> off

To turn these on and off run a command like the following: The -P flag I believe allows this to survive a reboot
# setsebool -P samba_export_all_rw on

The above command allowed me to connect to this share and get rid of that error.