yum install setools
seinfo -t
seinfo -u
seinfo -r
seinfo -r
seinfo --help
You want to add a CIFS share and set the correct SELinux context on the shared directory and below.
seinfo -t |grep samba samba_secrets_t samba_spool_t samba_unconfined_script_exec_t samba_net_t samba_var_t samba_net_exec_t samba_net_tmp_t samba_unconfined_net_t samba_unconfined_script_t samba_unit_file_t sambagui_exec_t samba_share_t samba_initrc_exec_t sambagui_t samba_etc_t samba_log_t
samba_share_t
. semanage fcontext -l
semanage fcontext --help
and read the semanage-fcontext
manpage (with examples).semanage fcontext -a -t samba_share_t "/opt/smbdata(/.*)?"